Robert van Boesschoten
Published: 20-08-2019
Last updated: 27-08-2020
Filters in Betty Blocks are very useful. You can use a filter to get a specific object out of a model or a collection or you can filter your grid so that you can see exactly the objects you want to see. In this article, all different types of filters and how to use them will be explained.
Every filter is made out of condition rows, with these conditions rows you can set up your filter. A filter can consist out of 1 condition row but it is also possible to make a filter with a lot of them. By grouping condition rows together you can make a filter even more efficient.
A predicate is a statement that will check your property. If a predicate results in true, the filter will show or fetch that property. If the statement is false, the filter will do nothing. Within Betty Blocks there are many different types of predicates that you can use.