datatables
datatables copied to clipboard
Filter for nested object in nested array with several linked criteria
Experimental
Adding a new type of filter named "Query" which should handle this common use case.
This will also create a recursive filter in a tree, targeting a specific property. As with "filters", "queries" are cumulative (✔️ multiple criteria).
Example:
table.createQuery('login_count')
.from(['groups', 'users'])
.where(check.isGreaterThan)
.set(1000)
// will check if "user.login_count" is greater than 1000 in users in groups
TODO
- [ ] Doc
- [ ] Example
- [ ] API design
réf. #115