UNPKG

nakedobjects.spa

Version:

Single Page Application client for a Naked Objects application.

32 lines (31 loc) 973 B
import { ElementRef, Renderer, QueryList } from '@angular/core'; import { ActionViewModel } from '../view-models/action-view-model'; export interface IActionHolder { doClick: () => void; doRightClick?: () => void; show: () => boolean; disabled: () => boolean | null; tempDisabled: () => boolean | null; value: string; title: () => string; accesskey: string | null; } export declare function wrapAction(a: ActionViewModel): IActionHolder; export declare class ActionComponent { private readonly renderer; action: IActionHolder; constructor(renderer: Renderer); private canClick(); doClick(): void; doRightClick(): void; class(): { tempdisabled: boolean | null; }; show(): boolean; disabled(): boolean | null; tempDisabled(): boolean | null; readonly value: string; readonly title: string; focusList: QueryList<ElementRef>; focus(): boolean; }