import { OnInit, ElementRef, EventEmitter } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { IconModel } from '../../models/icon/icon.model'; import { IconStylingModel } from '../../models/icon/icon-styling.model'; /** *

Icon is creating based on Icon Class.

*

Example of using component:

*
 * <cf-icon [properties]="icon"></cf-icon>
 * 
*/ export declare class CfIconComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; notifacationClickable: string; /** * It is Icon object which will recive values provided by Icon Class and after that md-icon will be builded on page. */ cfIcon: IconModel; /** *

Whether the icon is in toggle mode or normal mode.

*/ checked: boolean; currentIcon: any; /** * It is cf-icon html attribute [settings] with json icon object. *

Example of icon object:

*
{
     *	name: 'home',
     *	size: '24px'
     * }
*

name: string

*

It is name of icon. Default is home.

*

Next icons libraries are available:

*

Material Icons

*

Font Awesome Icons

*

If icon name consists of more then one word, then:

*

- for Material Icons: join words with underscore (like: thumb_up)

*

- for Font Awesome Icons: join words with dash (like: fa-address-book)

*

size: string

* It is icon size. Can be in pixels, em, percetages. Default is 24px */ properties: IconModel; /** *

The styling object of the icon.

*

Refer to ../models/icon/icon-styling.model.ts.

*/ styling: IconStylingModel; /** *

The name of the icon as external property.

*

mi Icons and FontAwesome names work in this case.

*/ name: string; /** *

The size of the icon and its container.

*

In pixels and percentage.

*/ size: string; /** *

display or hide the icon.

*/ display: boolean; /** * It is (cfOnToggle) attribute of cf-icon component. Means what event to call when toggle icon was clicked. */ cfOnToggle: EventEmitter; /** * It is function for set correct toggle value/icon and emmit event with icon state value. */ cfIconToggled(): 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 Icon component initialization next things are heppening:

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

Updating the properties object if any of the external inputs has been changed to keep the component dynamic.

* @param changes

Changes that occured from the user.

*/ ngOnChanges(changes: any): void; }