Skip to contents

Create a Filter component

Usage

calcite_filter(...)

Arguments

...

named attributes passed to htmltools::tag()

Value

an object of class calcite_component which is a subclass of shiny.tag

Details

Properties

The following properties are provided by this component:

NameAttributeDescriptionValuesReflects to Attribute
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanTRUE
filteredItemsNAThe component's resulting items after filtering.Check API referenceFALSE
filterPropsNASpecifies the properties to match against when filtering. This will only apply when value is an object. If not set, all properties will be matched.Check API referenceFALSE
itemsNADefines the items to filter. The component uses the values as the starting point, and returns items that contain the string entered in the input, using a partial match and recursive search. This property is needed to conduct filtering.Check API referenceFALSE
labellabelSpecifies an accessible name for the component.stringFALSE
messageOverridesNAUse this property to override individual strings used by the component.Check API referenceFALSE
placeholderplaceholderSpecifies placeholder text for the input element.stringFALSE
scalescaleSpecifies the size of the component."l" | "m" | "s"TRUE
valuevalueThe component's value.stringFALSE

Events

The following events are observed by shiny:

EventDescription
calciteFilterChangeFires when the filter text changes.

Examples

calcite_filter()
#> <calcite-filter></calcite-filter>