import { OnInit, ElementRef } from '@angular/core'; import { CfSelectableComponent } from '../selectable/selectable.component'; import { SelectableModel } from '../../models/selectable/selectable.model'; import { SwitchStylingModel } from '../../models/selectable/switch-styling.model'; /** *
Switch is creating using SelectableModel Class/Component based on Angular Material Slide toggle (Switch) and has abbility to customize md-slide-toggle's template.
. *Example of using Switch:
***/ export declare class CfSwitchComponent extends CfSelectableComponent implements OnInit { elementRef: ElementRef; notifacationClickable: string; /** * Component property for rendering template for each switch if that template was defined in html. */ cfSwitchTemplate: any; cfSwitch: SelectableModel; /** *<cf-switch [settings]="myFruits" (cfOnChange)="log($event)"></cf-switch>*
The styling property of the checkbox.
*/ styling: SwitchStylingModel; constructor(elementRef: ElementRef); /** * It will be generated cfCheckbox object and rendered inside component template. Also cfCheckStates function will initialize checkboxes states. */ ngOnInit(): void; ngOnChanges(changes: any): void; }