Skip to main content

Select Facet

Select Facet renders a custom listbox-style dropdown. It can select one value or multiple values, and it can either send one query clause or expand an option into a mapped bundle.

Authoring Structure

Select Facet
└── Select Facet Option

Parent Props

GroupPropDefaultMeaning
SettingstargetemptyShared target ID.
Settingsargument_modedefaultSingle argument mode.
Settingstarget_multiple_query_argumentsfalseEnables mapped bundle mode.
Settingsoptions_behaviorallAvailability behavior.
Settingsshow_countsfalseEnables dynamic counts.
Settingsselection_modesinglesingle or multiple.
SettingstagdivRoot wrapper tag.
Settingsdefault_labelSelect option...Trigger label and built-in clear option label.
Mode groupsmode-specific propsvariesSee Argument Modes.
Stylingclass, trigger_class, trigger_label_class, content_class, item_classcomponent defaultsClasses for the dropdown shell and items.

Option Props

GroupPropDefaultMeaning
ContentvalueemptySent value in single-argument mode.
ContentlabelOption LabelVisible option label.
Metadatakey, valueemptyOptional rows for custom JavaScript integrations.
Query Value Mappingsmapping_key, valueemptyValues used when parent mapped bundle mode is enabled.
SettingsdisabledfalsePrevents selection.
Settingsis_defaultfalseInitial selected option when no restored value exists.
Settingsused_with_multiple_argumentsfalseSwitches option authoring to query value mappings.
Settingscount_displayinlineInline count text or separate count span.
Stylingclass, span count classescomponent defaultsOption and count classes.

Runtime Notes

  • The root stores selected state in data-ome-selected-value and data-ome-selected-values.
  • Single selection uses one value. Multiple selection serializes multiple values for the same facet key.
  • A built-in empty option uses __ome-empty__ internally and clears the selection.
  • In mapped bundle mode, option query_value_mappings must match parent query_argument_mappings by mapping_key.

Example

Select Facet:
- target = products
- argument_mode = default
- facet_key = category_name
- selection_mode = single

Option:
- value = shoes
- label = Shoes