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'; import { TemplateService } from '../../services/template-service/template.service'; /** *
CF Icon Component
*
*
* import {{'{'}} IconModel {{'}'}} from 'cedrus-fusion'
* import {{'{'}} IconStylingModel {{'}'}} from 'cedrus-fusion'
* <cf-icon></cf-icon>
*
*
*/
export declare class CfIconComponent extends CfCoreComponent implements OnInit {
/**@hidden */ elementRef: ElementRef;
/**@hidden */ templateService: TemplateService;
/**@hidden */
notificationClickable: string;
/** @hidden
* Whether the icon is in toggle mode or normal mode.
*/ checked: boolean; /**@hidden */ currentIcon: any; /** *{{'{'}}
* display: boolean, // Default: true.
* disable: boolean, // Default: false.
* name: string, // Default: cloud.
* size: string, // Default: 24px.
* value: any, // Value emitted on click
* toggle:{{'{'}} // Toggling icon state
* name: string, // Name of icon toggled
* size: string, // Size of icon toggled
* value: any // Value of icon toggled
* {{'}'}}
*{{'}'}}
*
* Example
*{{'{'}}
* name: 'fa-heart-o',
* size: '18px',
* value: 'empty heart',
* toggle: {{'{'}}
* name: 'fa-heart',
* size: '18px',
* value: 'full heart'
* {{'}'}}
*{{'}'}}
*
*/
properties: IconModel;
/**
*dynamicClass: function() -> string, // Function that returns name of the class
*class: string // Name of the css class selector
*themeColor: string // primary/accent/warn
*
*{{'{'}}
* // Container surrounding the Icon
* container:{{'{'}}
* dynamicClass,
* class
* {{'}'}},
* // md-icon styling
* icon:{{'{'}}
* dynamicClass,
* class,
* themeColor
* {{'}'}},
* // Toggle Icon styling with same structure as above
* toggleIcon:{{'{'}}
* container: {{'{'}}{{'}'}},
* icon: {{'{'}}{{'}'}}
* {{'}'}}
*{{'}'}}
*
*/
styling: IconStylingModel;
/**
*
* Name of the icon
*Default is home
*Icon libraries available: Material Icons and Font Awesome Icons
*/ name: string; /** *Icon size
*Can be in pixels, em, percetages
*Default is '24px'
*/ size: string; /** * Output *Event emited on toggle
*/ cfOnToggle: EventEmitterOn Icon component initialization next things are heppening:
*