ctx.filterManager
The Filter Connection Manager is used to manage the filter associations between filter forms (FilterForm) and data blocks (tables, lists, charts, etc.). It is provided by BlockGridModel and is only available within its context (e.g., filter form blocks, data blocks).
Use Cases
Note:
ctx.filterManageris only available in RunJS contexts that have aBlockGridModel(e.g., within a page containing a filter form); it isundefinedin regular JSBlocks or independent pages. It is recommended to use optional chaining before access.
Type Definitions
Common Methods
Core Concepts
- FilterModel: A model providing filter conditions (e.g., FilterFormItemModel), which must implement
getFilterValue()to return the current filter value. - TargetModel: The data block being filtered; its
resourcemust supportaddFilterGroup,removeFilterGroup, andrefresh.
Examples
Add Filter Configuration
Refresh Target Blocks
Connection Field Configuration
Remove Configuration
Related
- ctx.resource: The target block's resource must support the filter interface.
- ctx.model: Used to get the current model's UID for filterId / targetId.

