@kui-shell/core
Version:
An Electron-based shell for cloud-native development
26 lines (25 loc) • 1 kB
TypeScript
export interface NotebookDefinitionMenuItem {
/** The title to use in the menu */
notebook: string;
/** The VFS filepath to this notebook */
filepath: string;
/** Open this guidebook, for auto-playing clients? (@see Client.firstOpenGuidebook()) */
open?: boolean;
}
export interface SeparatorMenuItem {
type: 'separator';
}
type NotebookMenuItem = NotebooksMenu | NotebookDefinitionMenuItem | SeparatorMenuItem;
export declare function isMenu(item: NotebookMenuItem): item is NotebooksMenu;
export declare function isLeaf(item: NotebookMenuItem): item is NotebookDefinitionMenuItem;
export interface NotebooksMenu {
/** Name for this menu in the UI */
label: string;
/** Entries of this menu */
submenu: NotebookMenuItem[];
/** Is this menu displayed as expanded? [Default: true] */
expanded?: boolean;
}
/** @return the client's definition of a Notebooks menu */
export default function loadClientNotebooksMenuDefinition(): NotebooksMenu;
export {};