API REFERENCE
setConditionPresets
Sets advanced condition presets containing names and JSON.
What does this API do?
Sets advanced condition presets containing names and JSON.
API for Pro features: Advanced filter and built-in compound condition editor
Exact input and result types
setConditionPresets(presets: ReadonlyArray<{ name: string; json: string }>): Promise<void>| Arguments | Required | Type |
|---|---|---|
| presets | Required | ReadonlyArray<{ name: string; json: string }> |
The return type is Promise<void>.
Usage flow
After registering and initializing the Grid element, call grid.setConditionPresets(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.
Feature explanations and examples
- Condition trees
Combine conditions across columns in an AND/OR tree to express business rules, such as large APAC orders or orders for a particular product.