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, listbox_class, selection_classcomponent defaultsClasses for the searchable select shell, popup, internal listbox, and selected-value text.

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

  • Public ome:search-select:open, ome:search-select:close, ome:search-select:input, and ome:search-select:change payloads and examples are documented in the Facet Events API.
  • 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.
  • The popup contains a search input and an internal listbox. Older custom markup that places options directly in the popup is migrated into that listbox at runtime for compatibility.
  • SearchSelect options do not expose an authored is_default prop in the current PHP component.

CSS Custom Properties

PropertyDefaultMeaning
--ome-search-select-placeholder-color#64748bPlaceholder text color for the search input.
--ome-search-select-empty-color#475569Empty-selection text color when no option is selected.

Example

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

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