import MenuItem from "@ui5/webcomponents/dist/MenuItem.js"; import type { DefaultSlot } from "@ui5/webcomponents-base/dist/UI5Element.js"; /** * @class * * ### Overview * * `ui5-user-menu-item` is the item to use inside a `ui5-user-menu`. * An arbitrary hierarchy structure can be represented by recursively nesting menu items. * * ### Usage * * `ui5-user-menu-item` represents a node in a `ui5-user-menu`. The user menu itself is rendered as a list, * and each `ui5-menu-item` is represented by a menu item in that menu. Therefore, you should only use * `ui5-user-menu-item` directly in your apps. The `ui5-menu` menu item is internal for the menu, and not intended for public use. * * ### ES6 Module Import * * `import "@ui5/webcomponents-fiori/dist/UserMenuItem.js";` * @constructor * @extends MenuItem * @public * @since 2.5.0 */ declare class UserMenuItem extends MenuItem { /** * Defines the items of this component. * * **Note:** Use `ui5-user-menu-item` for the intended design. * @public */ items: DefaultSlot; /** * When set, a second line appears below the menu item text showing the text * of the currently selected sub-item. Intended for use with a single-select * ui5-menu-item-group (check-mode="Single"). * When enabled, the checked sub-item cannot be unchecked, * ensuring the selection text is always displayed. * * @default false * @public * @since 2.22.0 */ showSelection: boolean; get _menuItems(): UserMenuItem[]; /** * Overrides the base MenuItem behavior to prevent unchecking * the currently checked item in single-select mode when * the parent item uses showSelection, ensuring there is always * a visible selection. */ _updateCheckedState(): void; /** * Returns the text of the currently checked sub-item. * Only returns text for single-select groups. */ get _selectedSubItemText(): string; } export default UserMenuItem;