Skip to content

Commit e351dc5

Browse files
Improve the filter builders section
1 parent 628b683 commit e351dc5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/pluggable-widgets/pluggable-widgets-client-apis/pluggable-widgets-client-apis-list-values.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ It is possible to set filtering conditions for items of a datasource. `setFilter
197197

198198
Some examples of builder functions are `equals`, `greaterThan`, `lessThanOrEqual` for filtering on `DateTime` or `Decimal` attributes. Functions like `startsWith`, `contains` are useful for filtering on `String` attributes. Filtering based on associations is also possible. For example, you can use `equals` with references and `contains` with reference sets.
199199

200+
To use the filter builders in a pluggable widget, import the individual builder functions you need directly from the "mendix/filters/builders" module path:
201+
202+
```ts
203+
import { attribute, literal, equals, startsWith, and, or } from "mendix/filters/builders";
204+
```
205+
200206
The following code samples show how to use filter builders and apply filtering to a data source property with three linked attributes and two linked associations:
201207

202208
```ts

0 commit comments

Comments
 (0)