import { OnInit, ElementRef, EventEmitter } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { ButtonModel } from '../../models/button/button.model'; import { ButtonStylingModel } from '../../models/button/button-styling.model'; /** *

The button is created based on the button class (see /models/button).

*

Example of using the component:

*
 * <cf-button [settings]="button" (onClick)="function() "></cf-button>
 * 
*/ export declare class CfButtonComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; notifacationClickable: string; /** * It is the button object bound to the button component */ cfButton: ButtonModel; /** *

The type of the needed button.

*

Type can be: mat-button, mat-raised-button, mat-fab, mat-mini-fab and mat-icon-button.

*/ buttonType: string; /** *

It is cf-button html attribute settings with json button object.

*/ properties: ButtonModel; /** *

The styling object of the button component. Refer to ../models/button-styling.model.ts

*/ styling: ButtonStylingModel; /** *

The label for the button.

*/ label: string; /** *

The name of the icon. Refer to ../models/icon.model.ts

*/ iconName: string; /** *

The icon position on the button. It can be left or right.

*/ iconPosition: string; /** *

Disable the button if tru.

*/ disable: boolean; /** *

Display the button if true.

*/ display: boolean; /** *

Display waiting mode (Icon).

*/ wait: boolean; /** *

The event will be emitted when the button is clicked

*/ onClick: EventEmitter<{}>; constructor(elementRef: ElementRef); /** *

On initialization:

*

Check to see if any of the angular material button types are needed to be passed to the child button.

*

Types are: md-button, md-raised-button, md-icon-button, md-fab, md-mini-fab

*

Then initialize the button element

*/ ngOnInit(): void; /** *

Keep the properties object updated with any changes from external properties to keep the button dynamic.

* @param changes */ ngOnChanges(changes: any): void; /** *

The method will emit event when the button is clicked

*/ buttonClicked(): void; /** * It is function for creating Notification click events by using Core Component notificationAction event emmiter. * @param notification it is json notification object */ cfNotificationAction(notification: any): void; }