Skip to content
vviinn DocsDocs Beta

Primary Filters (vviinn-filters)

Generated from vviinn-widgets 2.228.0, the latest release when these docs were built. If you pin an older version, some of these may not be in it yet — check the Changelog.

Set them as HTML attributes.

show-interval-inputs

Show editable input fields in interval filters instead of readonly labels

Type: boolean · Default: false

Listen with document.addEventListener(). The pages under Events describe the data each event carries.

EventDescription
vviinnFiltersChangedThe filter's state changes
vviinnFilterTriggered—

Replace texts and icons with your own content: Replace Widget Content.

SlotDescription
vviinn-range-filter-from-labelLabel text for the "From" input field in range filters.
vviinn-range-filter-to-labelLabel text for the "To" input field in range filters.

Style these elements with vviinn-filters::part(name): Styling Specific Elements.

PartDescription
filters-footerWrapper for the sub filters.
filters-footer-listList of sub filters.
filters-listList of main filters.
filters-main-buttonMain filter button.
filters-option-buttonButton of the sub filter.
filters-option-color-dotColor Dot of the sub filter.
filters-option-icon-wrapperIcon Wrapper of the sub filter.
filters-option-imageImage of the sub filter.
filters-option-textText of the sub filter.
filters-sub-rowRow of the sub filters.
filters-wrapperWrapper for the main filters.
histogramWrapper itself.
histogram-barBar of the histogram.
histogram-from-inputInput field for the minimum value.
histogram-from-sliderSlider for the minimum value.
histogram-input-containerContainer for the input field (when showIntervalInputs is true).
histogram-input-labelLabel text for the input (From/Till).
histogram-labelLabel for the histogram (when showIntervalInputs is false).
histogram-label-wrapperWrapper for the labels/inputs.
histogram-range-containerContainer for the range sliders.
histogram-sliders-controlContainer for the range sliders control.
histogram-to-inputInput field for the maximum value.
histogram-to-sliderSlider for the maximum value.

Set them on vviinn-filters or a parent element: CSS Variables.

PropertyDescription
--font-familyThe font family of the filters.