addTextAttributeFilter()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Creates the AddTextAttributeFilter command. Dispatching this command will result in the addition of a text attribute filter (arbitrary or match) to the dashboard’s filter bar, at desired position, or error in case of invalid update (e.g. wrong or duplicated displayForm).
export declare function addTextAttributeFilter(filter: DashboardTextAttributeFilter, index: number, correlationId?: string, mode?: DashboardAttributeFilterConfigMode): IAddTextAttributeFilter;
Parameters
Parameter | Type | Description |
|---|---|---|
filter | the text attribute filter to add (IDashboardArbitraryAttributeFilter or IDashboardMatchAttributeFilter) | |
index | number | specify index among the attribute filters at which the new filter should be placed. The index starts at zero and there is convenience that index of -1 would add the filter at the end. |
correlationId | string | (Optional) specify correlation id to use for this command |
mode | (Optional) specify the visibility mode of attribute filter |
Returns