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:
***/ 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; /** *<cf-icon [properties]="icon"></cf-icon>*
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'
* }
* It is name of icon. Default is home.
*Next icons libraries are available:
* * *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)
*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 On Icon component initialization next things are heppening: Updating the properties object if any of the external inputs has been changed to keep the component dynamic. Changes that occured from the user.
*
*
*/
ngOnInit(): void;
/**
*