import { OnInit } from '@angular/core'; import { ContainerContent, ContainerControl } from '../container.control'; export interface PanelAction { doit(data: any): void; } /** * An interface that represents the content of a panel control. */ export interface PanelActionContent extends ContainerContent { /** * In this case, the `label?: string` field inherited from `FormFieldContent` is interpreted as: * Returns the control's title. * By default, its value is `''`. Each control sets its own label (title). */ /** * Returns the panel's description. * By default, its value is `undefined`. */ description?: string; /** * Returns the panel's icon name. * By default, its value is `undefined`. */ iconName?: string; /** * Returns the action and action labels for each panel. */ action?: PanelAction; actionLabel?: string; } /** * Represents a container control that is showed as a panel. * Usage notes: * - It can be used as: * * Where `content.formSection` is created, for example, as this: * this.content.formSection = new FormGroup({ }, [ ]); */ export declare class ContainerPanelActionComponent extends ContainerControl implements OnInit { /** * Input field that contains the content of this class. */ content: PanelActionContent; constructor(); ngOnInit(): void; /** * Initializes the `content` input property. * @param label The default label to use. It is used if the `content.label` is not specified. */ protected init(label: string): void; doAction(): void; }