UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

44 lines (43 loc) 1.52 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; reRenderActionMenuBar(): void; 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[]; getModels(): ActionModel[]; setModels(models: ActionModel[]): void; }