wip
This commit is contained in:
parent
587136a82d
commit
7eeb90eddc
13 changed files with 392 additions and 54 deletions
16
src/frontend/modal/menu.ts
Normal file
16
src/frontend/modal/menu.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
export interface ModalTypeMenu {
|
||||
type: 'menu';
|
||||
screenX: number;
|
||||
screenY: number;
|
||||
items: MenuItem[];
|
||||
}
|
||||
|
||||
export type MenuItemClassName = `bi bi-${string}`;
|
||||
|
||||
export interface MenuItem {
|
||||
icon?: MenuItemClassName;
|
||||
name: string;
|
||||
onClick: VoidFunction;
|
||||
disabled?: boolean;
|
||||
danger?: boolean;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue