UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

33 lines (32 loc) 1.05 kB
import { Type } from '@angular/core'; /** * <p style="text-indent: 2em;"> * A <code>model</code> class representing a <code>menu item</code>. * </p> * * @author shiorin, tee4cute * @see [[AbstractMenuItem]] */ export declare class MenuItemModel { /** * A <code>type</code> which is a sub-class of [[AbstractMenuItem]] of this <code>menu item</code>. */ type: Type<any>; /** * The label of this <code>menu item</code>. */ label: string; /** * A handler function will be called when this <code>menu item</code> is clicked. */ actionPerformedHandler: Function; /** * A flag indicating that this <code>menu item</code> is currently enabled or not. */ enable: boolean; /** * A flag controlling the behavior of this <code>menu item</code> to auto reset focusing component when it is clicked or not. */ autoResetFocus: boolean; constructor(menuType: Type<any>, label?: string, enable?: boolean, actionPerformedHandler?: Function, autoResetFocus?: boolean); }