import { OnInit, ElementRef, EventEmitter } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { ButtonMenuModel } from '../../models/button-menu/button-menu.model'; import { ButtonMenuStylingModel } from '../../models/button-menu/button-menu-styling.model'; /** *
GC ButtonMenu is created based on the ButtonMenuModel class (see /models/button-menu).
*Example of using the component:
***/ export declare class CfButtonMenuComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; notifacationClickable: string; /** * It is the ButtonMenu object which will recive data from ButtonMenuModel and after will be used in component template. */ cfButtonMenu: ButtonMenuModel; /** *<cf-button [settings]="button" (onClick)="function() "></cf-button>*
The type of the needed button.
*Type can be: mat-button, mat-raised-button.
*/ buttonType: string; /** *It is cf-button-menu html attribute [settings] with json ButtonMenu object.
*ButtonMenu is assembly of Button component and Menu component.
*/ properties: ButtonMenuModel; styling: ButtonMenuStylingModel; /** *It is cf-button-menu html attribute [disabled] to set disabled status of component. Default is false.
*/ disabled: boolean; /** *The event will be emitted when the button is clicked (left part of button).
*Click on right part of the button (with arrow down icon) is just opening dropdown menu.
*/ onClick: EventEmitter<{}>; notificationAction: any; 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.
*Then initialize the button element.
*/ ngOnInit(): 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; }