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
feat(ui5-menu-separator): add new component (#8871)
New component that can be slotted with menu items intended to separate the items with a line.
BREAKING CHANGE: `startsSection` property removed from MenuItems
Before:
<ui5-menu>
<ui5-menu-item text="Item A"></ui5-menu-item>
<ui5-menu-item text="Item B" starts-section></ui5-menu-item>
</ui5-menu>
Now:
<ui5-menu>
<ui5-menu-item text="Item A"></ui5-menu-item>
<ui5-menu-separator></ui5-menu-separator>
<ui5-menu-item text="Item B"></ui5-menu-item>
</ui5-menu>
Related to: #8461
Copy file name to clipboardexpand all lines: packages/main/src/Menu.ts
+35-12
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ import List from "./List.js";
26
26
importIconfrom"./Icon.js";
27
27
importBusyIndicatorfrom"./BusyIndicator.js";
28
28
importMenuItemfrom"./MenuItem.js";
29
+
importMenuSeparatorfrom"./MenuSeparator.js";
29
30
importtype{
30
31
ListItemClickEventDetail,
31
32
}from"./List.js";
@@ -39,6 +40,16 @@ import menuCss from "./generated/themes/Menu.css.js";
39
40
40
41
constMENU_OPEN_DELAY=300;
41
42
43
+
/**
44
+
* Interface for components that may be slotted inside a `ui5-menu`.
45
+
*
46
+
* **Note:** Use with `ui5-menu-item` or `ui5-menu-separator`. Implementing the interface does not guarantee that any other classes can work with the `ui5-menu`.
0 commit comments