UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

42 lines (41 loc) 1.43 kB
import { OnInit, ElementRef, OnDestroy } from '@angular/core'; import { ActionModel } from '../model/ActionModel'; import { ContextMenu } from '../ContextMenu.component'; import { IContext } from '../IContext'; import { IMenuModelFactory } from '../IMenuModelFactory'; export declare class ActionMenuBar implements OnInit, IContext, OnDestroy { static readonly TYPE_NAME: string; private menuFactory; private models; private maxWidth; private activeActionModels; private moreActionModels; private contextMenu; private menuModel; private moreModel; private elementRef; private delayTimer; private isRendering; private isShowMoreMenu; constructor(elementRef: ElementRef); ngOnInit(): void; ngOnDestroy(): void; init(): void; private reRenderActionMenuBar(); private getTopMoreMenu(); private getLeftMoreMenu(); private showMoreMenu(show); _isRendering(): boolean; onMoreBtnClicked($event: Event): void; isShow(model: ActionModel): boolean; isEnabled(model: ActionModel): boolean; isShowMore(): boolean; reload(): void; getContextMenu(): ContextMenu; setContextMenu(menu: ContextMenu): void; getMenuModelFactory(): IMenuModelFactory; setMenuModelFactory(menuFactory: IMenuModelFactory): void; setMaxWidth(maxWidth: number): void; getMoreModel(): ActionModel; getActiveActionModels(): ActionModel[]; }