feat(ui5-comobobox, ui5-multi-combobox): add custom items#13640
feat(ui5-comobobox, ui5-multi-combobox): add custom items#13640Vonahz wants to merge 19 commits into
Conversation
Sample sync reminderHTML sample changed but React sample (
Please keep both samples in sync, or ignore if the change does not apply to both. |
…combobox_custom_items
|
🚀 Deployed on https://pr-13640--ui5-webcomponents-preview.netlify.app |
…combobox_custom_items
…combobox_custom_items
…bcomponents into combobox_custom_items
| * Used for filtering, autocomplete, and mobile rendering. | ||
| * @default undefined | ||
| * @public | ||
| */ |
There was a problem hiding this comment.
do we need that? is it going to be used for the token and as a value in the input?
There was a problem hiding this comment.
Yes. It is used for the token and if value is not provided, input value fallbacks to the "text" property.
…combobox_custom_items
|
On mobile, the matching item does not have the selected blue state. For standard items and for desktop the item looks selected (blue background) when you start typing and the item is auto-completed, but for the combo-box custom item the selected style is missing on phone. Screen.Recording.2026-06-15.124844.mp4 |
…combobox_custom_items
| /** | ||
| * @class | ||
| * The `ui5-cb-item-custom` is a combobox item component | ||
| * that can be used to place custom content in the combobox item. |
There was a problem hiding this comment.
| * that can be used to place custom content in the combobox item. | |
| * that allows placing custom content inside a combobox item. |
| * @class | ||
| * The `ui5-cb-item-custom` is a combobox item component | ||
| * that can be used to place custom content in the combobox item. | ||
| * The text property is used for filtering and auto-complete. |
There was a problem hiding this comment.
| * The text property is used for filtering and auto-complete. | |
| * The `text` property is used for filtering and auto-complete. |
| * The `ui5-cb-item-custom` is a combobox item component | ||
| * that can be used to place custom content in the combobox item. | ||
| * The text property is used for filtering and auto-complete. | ||
| * In case the user needs highlighting functionality, check "@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js" |
There was a problem hiding this comment.
| * In case the user needs highlighting functionality, check "@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js" | |
| * For highlighting functionality, see `@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js`." |
|
|
||
| /** | ||
| * Defines the value of the component. | ||
| * Used for programmatic selection via selectedValue property. |
There was a problem hiding this comment.
| * Used for programmatic selection via selectedValue property. | |
| * Used for programmatic selection via the `selectedValue` property. |
| /** | ||
| * @class | ||
| * The `ui5-mcb-item-custom` is a multi-combobox item component | ||
| * that can be used to place custom content in the multi-combobox item. |
There was a problem hiding this comment.
| * that can be used to place custom content in the multi-combobox item. | |
| * that hat allows placing custom content inside a multi-combobox item. |
| * @class | ||
| * The `ui5-mcb-item-custom` is a multi-combobox item component | ||
| * that can be used to place custom content in the multi-combobox item. | ||
| * The text property is used for filtering and token display. |
There was a problem hiding this comment.
| * The text property is used for filtering and token display. | |
| * The `text` property is used for filtering and token display. |
| * The `ui5-mcb-item-custom` is a multi-combobox item component | ||
| * that can be used to place custom content in the multi-combobox item. | ||
| * The text property is used for filtering and token display. | ||
| * In case the user needs highlighting functionality, check "@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js" |
There was a problem hiding this comment.
| * In case the user needs highlighting functionality, check "@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js" | |
| * For highlighting functionality, see "@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js" |
|
|
||
| ### Custom Items with Rich Content | ||
| Use `ui5-cb-item-custom` to create custom item templates with complex layouts, multiple icons, images, or any HTML content. | ||
| This allows you to build rich, visually appealing dropdown items beyond the standard text and additional-text format. |
There was a problem hiding this comment.
| This allows you to build rich, visually appealing dropdown items beyond the standard text and additional-text format. | |
| This allows you to build rich, visually appealing dropdown items beyond the standard text and `additional-text` format. |
JIRA: BGSOFUIRILA-4141
Fixes: #11731
Introduces
ui5-cbi-customandui5-mcbi-customto enable custom content in ComboBox and MultiComboBox items.