BREAKING CHANGE(dees-appui-secondarymenu): Add SecondaryMenu component and replace Mainselector with new SecondaryMenu in AppUI
This commit is contained in:
@@ -2,3 +2,4 @@ export * from './tab.js';
|
||||
export * from './selectionoption.js';
|
||||
export * from './appbarmenuitem.js';
|
||||
export * from './menugroup.js';
|
||||
export * from './secondarymenu.js';
|
||||
|
||||
20
ts_web/elements/interfaces/secondarymenu.ts
Normal file
20
ts_web/elements/interfaces/secondarymenu.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Interface for individual menu items in the secondary menu
|
||||
*/
|
||||
export interface ISecondaryMenuItem {
|
||||
key: string;
|
||||
iconName?: string;
|
||||
action: () => void;
|
||||
badge?: string | number;
|
||||
badgeVariant?: 'default' | 'success' | 'warning' | 'error';
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for collapsible groups in the secondary menu
|
||||
*/
|
||||
export interface ISecondaryMenuGroup {
|
||||
name: string;
|
||||
items: ISecondaryMenuItem[];
|
||||
collapsed?: boolean;
|
||||
iconName?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user