import { OnInit, EventEmitter, ElementRef } from '@angular/core';
import { CfCoreComponent } from '../core/core.component';
import { MenuModel } from '../../models/menu/menu.model';
import { MenuStylingModel } from '../../models/menu/menu-styling.model';
import { MdMenuTrigger } from '@angular/material';
/**
*
Menu is creating using MenuItemModel Class/Component and Icon Class/Component.
* Example of using Menu:
*
* <cf-menu [menu]="menu" [show]="true"></cf-menu>
*
*/
export declare class CfMenuComponent extends CfCoreComponent implements OnInit {
elementRef: ElementRef;
notifacationClickable: string;
/**
* It is an array with menu items generated by MenuItemModel Class and used in Menu component template to render list of menu items.
*/
cfMenu: MenuModel;
/**
* It is an attribute [settings] of directive cf-menu which take array with menu items.
* Example of menu item json object:
* {
* label: 'My menu item label',
* type: 'standard',
* icon: Icon,
* notification: '5',
* display: true,
* disable: false,
* onClick: this.myFunction
* }
* label: string
* It is label of menu item. Default is Menu item label.
* type: string
* It is menu item type. Types are: standard and divider. Default is standard.
* icon: Object
* It is menu item icon generated by Icon Class (look to Icon API Referance).
* notification: string
* It is menu item notification. Can mean number of notifications.
* display: Boolean
* It is menu item visibility. Default is true.
* disable: Boolean
* It is menu item disable status. Default is false.
* onClick: any
* It is menu item click event.
*/
properties: MenuModel;
styling: MenuStylingModel;
show: boolean;
disabled: boolean;
cfItemAction: EventEmitter;
itemClicked(i: number, it: Object): void;
/**
* It is Menu trigger element (icon) in the DOM which give access to open menu programmatically from other GCs Components (like GC Button) by calling function openMenu().
*/
trigger: MdMenuTrigger;
/**
* It is function which is called after click on Menu icon (trigger) from other GCs Components (like GC Button) to open list with menu items.
*/
openMenu(): 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;
constructor(elementRef: ElementRef);
/**
* On Menu component initialization next things are heppening:
*
* - menu array passed via [menu] attribute of cf-menu directive is assigned to cfMenu array which is used inside Menu Component template
*
- on each ngFor iteration menu item is generated with MenuItemModel Class (inside which also Icon Class can be called to generate menu item icon)
*
*
*/
ngOnInit(): void;
}