/** Core */ import { CoreComponent } from "cmf.core/src/core"; import { Style } from "cmf.core/src/domain/metadata/style"; /** Angular2 */ import * as ng from "@angular/core"; /** * Tools Widget Action definition */ export interface ToolsWidgetAction extends Style { /** * Is Button invisible */ invisible?: boolean; /** * Is Button disabled */ disabled?: boolean; /** * Button id */ id: string; /** * Button name */ name: string; } /** * @whatItDoes * Tools Widget/Panel basic component. Mainly used to group components that need a small toolbar with quick actions like 'add', 'delete', 'edit', etc * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `ToolsWidgetAction` : **actions** - The header buttons of this component ; * `string` : **mainTitle** - The header title this component . * * ### Outputs * `ToolsWidgetAction` : **actionClick** - Header actions click event . * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * ``` * */ export declare class ToolsWidget extends CoreComponent implements ng.OnChanges { private changeDetector; /** * Header buttons */ actions: Array; /** * Header actions click event */ actionClick: ng.EventEmitter; /** * Header title */ mainTitle: string; /** * Deprecated title input */ title: string; constructor(changeDetector: ng.ChangeDetectorRef); /** * When component changes - mark for check */ /** * When component changes - mark for check * * @param {any} [changes] Complex object that contains a set of properties that have changed */ ngOnChanges(changes: any): void; /** * When an action button is clicked */ onButtonClick(event: Event, action: ToolsWidgetAction): void; } export declare class ToolsWidgetModule { }