UNPKG

@eclipse-scout/core

Version:
31 lines 1.19 kB
import { InitModelOf, Menu, MenuBoxEventMap, MenuBoxModel, ObjectOrChildModel, Widget } from '../../index'; export declare class MenuBox extends Widget implements MenuBoxModel { model: MenuBoxModel; eventMap: MenuBoxEventMap; self: MenuBox; compact: boolean; menus: Menu[]; uiMenuCssClass: string; protected _compactOrig: boolean; constructor(); protected _init(options: InitModelOf<this>): void; protected _initMenus(menus: Menu[]): void; protected _initMenu(menu: Menu): void; protected _render(): void; protected _renderProperties(): void; setMenus(menus: ObjectOrChildModel<Menu>[]): void; protected _renderMenus(): void; protected _removeMenus(): void; setCompact(compact: boolean): void; protected _renderCompact(): void; /** * Sets the menu box into compact mode. Can be reversed by calling {@link #undoMakeCompact}. */ makeCompact(): void; /** * Undoes the effect of {@link #makeCompact}, i.e. restores the previous compact state. * If {@link #makeCompact} was not called previously, nothing happens. */ undoMakeCompact(): void; } //# sourceMappingURL=MenuBox.d.ts.map