import { OnInit, EventEmitter, ElementRef } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { SelectableModel } from '../../models/selectable/selectable.model'; import { SelectableStylingModel } from '../../models/selectable/selectable-styling.model'; import { TemplateService } from '../../services/template-service/template.service'; /** *

CF Selectable Component

*

Selectable component can be Checkbox, Switch or Radio

*
 * 
 * import {{'{'}} SelectableModel {{'}'}} from 'cedrus-fusion'
 * import {{'{'}} CheckboxStylingModel {{'}'}} from 'cedrus-fusion' (in case of checkbox)
 * <cf-checkbox></cf-checkbox>
 * <cf-switch></cf-switch>
 * <cf-radio></cf-radio>
 * 
 * 
*/ export declare class CfSelectableComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; /**@hidden */ notificationClickable: string; /**@hidden */ selected: boolean; /**@hidden */ hasNoItem: boolean; /**@hidden */ internalId: number; /** *
{{'{'}}
     *  display: boolean,	    // Default: true.
     *  disable: boolean,	    // Default: false.
     *  value: string,			  // Default: value.
     *  item: any,			      // Item can be a string or any object to be put along side the control.
     *  checked: boolean,			// Default: false.
     *  itemPosition: string	// Default: after.
     *{{'}'}}
     * 
*

Example

*
{{'{'}}
     *	value: 'pizza',
     *	item: 'Pizza',
     *	checked: true,
     *	itemPosition: 'after'
     *{{'}'}}
     * 
*/ properties: SelectableModel; /** *

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 checkbox
      *  container:{{'{'}}
      *    dynamicClass,
      *    class
      *  {{'}'}},
      *  // md-checkbox
      *  button:{{'{'}}
      *    dynamicClass,
      *    class,
      *    themeColor
      *  {{'}'}}
      *{{'}'}}
      * 
*/ styling: SelectableStylingModel; /** *

The internal value of the selectable emitted when selected.

*

Default is value

*/ value: string; /** *

Item can be a label or any other object based on the html template passed to the selectable

*/ item: any; /** *

Checked or not checked. Double binded variable to get or set the checked value of the selectable.

*

Default: false

*/ /**@hidden */ checked: boolean; /** *

Item Position relative to the control. Can be: before or after. Default: after.

*/ itemPosition: string; /**@hidden */ checkedChange: EventEmitter<{}>; /**@hidden */ clicked: EventEmitter<{}>; /** @hidden */ cfNotificationAction(notification: any): void; /**@hidden */ constructor(elementRef: ElementRef, /**@hidden */ templateService: TemplateService); /**@hidden */ ngOnInit(): void; /**@hidden */ notifyGroup(): void; /**@hidden */ updateFromGroup(val: boolean): void; /**@hidden */ ifHasItem(): void; }