sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Interface FilterWidgetProps Beta

Props for the filter widget.

Properties

Data

attribute

attribute: Attribute

Attribute (dimension) to filter on. A query fetches all members for selection.


dataSource

dataSource?: DataSource

Data source the query runs against.

If not specified, the query will use the defaultDataSource specified in the parent Sisense Context.


dimensionFilters

dimensionFilters?: Filter[]

The widget's own dimension filters — the permanent restriction on which members this widget may select, as opposed to the transient dashboard state also present in parentFilters.

The published filter encodes them, so that selecting all values filters the dashboard by the allowed members rather than by every member of the dimension. Pass the same filters here and in parentFilters.


filter

filter?: Filter | null

Current filter state. Injected automatically when placed inside a Dashboard. For standalone use, pass explicitly.


parentFilters

parentFilters?: Filter[]

Everything that narrows the member list: the widget's own dimension filters, plus any dashboard filters the widget opted in to. Scopes the member query only.

Widget

config

config?: FilterWidgetConfig

Configuration of the widget.


filterType

filterType?: FilterWidgetFilterType

How the filter is rendered. Defaults to 'members' (searchable member-select dropdown). 'condition' renders a string condition control for text attributes, and 'calendar' a calendar for datetime attributes. Additional types will be added as they are implemented.

Default Value
'members'

isMultiselect

isMultiselect?: boolean

If true, the dropdown allows selecting multiple members.

Default Value
true

styleOptions

styleOptions?: FilterWidgetStyleOptions

Style options for the widget container (look & feel, border, shadow, etc.), and for the filter control inside it under control.


title

title?: string

Widget title. Auto-populated from attribute.name if not set.

Last Updated: