Configuration

Use the following configuration options to bind the Dataset Filter Labels component.

Properties

Name
Default
Description

emptyLabel

empty string

The label to show when no filters values exist on a dataset query.

valueOnly

false

Boolean that determines whether the field name is included in the label.

Example

The following creates a filter label with just the query field values. When no filters exist, the label will show -Nothing Selected-.

new wire.filterLabel().render("#label", {
    ...
    valueOnly: true,
    emptyLabel: "-Nothing Selected-"
});       

Last updated