Skip to content

IBX-12476: Added the filter_dropdown component - #92

Open
tischsoic wants to merge 1 commit into
IBX-12475-dropdown-option-groupsfrom
IBX-12476-filter-dropdown
Open

tischsoic wants to merge 1 commit into
IBX-12475-dropdown-option-groupsfrom
IBX-12476-filter-dropdown

Conversation

@tischsoic

@tischsoic tischsoic commented Sep 7, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12476

Related PRs:

Description:

Twig twin of the new FilterDropdown: <twig:ibexa:filter_dropdown name label :items type value hasSearch disabled> extends the dropdown partial, which gains widget and footer blocks. The TS base now resolves its widget nodes through an overridable hook, so a trigger <button> can stand in for the input-like widget; FilterDropdown extends DropdownMultiInput and keeps the <select multiple> sync, search and keyboard handling while updating aria-expanded, the counter / single-value summary and the Clear action. No consumer yet (first adopter: the "More filters" toggler of adaptive_filters.html.twig — follow-up).

For QA:

No back-office consumer in this PR. Verified on a scratch page: all four types initialise, open/close, checking items updates the counter and the hidden select, Clear empties and disables itself, search shows "No results found", the dashboard type shows "Filter: " at 32px, a disabled trigger never opens.

Documentation:

A button-triggered multi-select filter built on the dropdown partial: the
base template gains widget and footer blocks, the TS base resolves its
widget nodes through an overridable hook so a trigger button can replace
the input-like widget, and FilterDropdown extends DropdownMultiInput to
keep the select sync, search and keyboard handling while rendering the
counter or single-value summary, aria-expanded and the Clear action.

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant