You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(ui5-combobox, ui5-multi-combobox): prepare for physical list items (#9307)
As the ui5-multi-combobox & ui5-combobox will use physical items, additional adjustments need to be performed in order to have a smooth and backward compatible transition.
This change renames the text property of the ui5-cb-item-group & ui5-mcb-item-group to header-text in consistency to the ui5-li-group which the ComboBoxItemGroup and MultiComboBoxItemGroup will extend once transitioning to physical items in the list.
After the transition from IComboBoxItem/IMultiComboBoxItem to ListItemGroup for the group items code clean up of the non-null assertion operator can be performed as well.
BREAKING CHANGE: The ui5-cb-item-group & ui5-mcb-item-group text property is renamed to header-text.
If you previously used the text property:
<ui5-cb-item-group text="A">
<ui5-cb-item text="Algeria"></ui5-cb-item>
</ui5-cb-item-group>
<ui5-mcb-item-group text="A">
<ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
</ui5-mcb-item-group>
Now you must rename it to header-text:
<ui5-cb-item-group header-text="A">
<ui5-cb-item text="Algeria"></ui5-cb-item>
</ui5-cb-item-group>
<ui5-mcb-item-group header-text="A">
<ui5-mcb-item text="Afghanistan"></ui5-mcb-item>
</ui5-mcb-item-group>
Related to: #8461
0 commit comments