Skip to main content

SearchSelect Facet

SearchSelect Facet is a searchable option selector. It is useful when the authored option set is large enough to need filtering inside the dropdown.

Authoring Structure

SearchSelect Facet
└── SearchSelect 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.
SettingsplaceholderSearch...Search input placeholder.
Settingsdefault_labelSelect option...Text shown when nothing is selected.
Mode groupsmode-specific propsvariesSee Argument Modes.
Stylingclass, control_class, trigger_class, input_class, content_class, selection_classcomponent defaultsClasses for the searchable select shell.

Option Props

GroupPropDefaultMeaning
ContentvalueemptySent value in single-argument mode.
ContentlabelOption LabelVisible label, search text, and pill label.
Metadatakey, valueemptyOptional rows for custom JavaScript integrations.
Query Value Mappingsmapping_key, valueemptyValues used when parent mapped bundle mode is enabled.
SettingsdisabledfalsePrevents selection.
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 with data-ome-selected-value and data-ome-selected-values.
  • selection_mode = multiple renders multiple selected values as removable selections.
  • SearchSelect uses the shared search-select runtime plus facet-specific query binding.
  • SearchSelect options do not expose an authored is_default prop in the current PHP component.

Example

SearchSelect Facet:
- target = posts
- argument_mode = default
- facet_key = name
- placeholder = Search by slug

Option:
- value = beta-bar
- label = Beta Bar Post