1 import { Component, ViewChild, ElementRef, ContentChildren, Input } from '@angular/core';
2 import { BrowserModule } from '@angular/platform-browser'
3 import { UiElementBase, UiElementBaseInterface } from './../ui-element-base.component';
6 selector: 'ui-element-checkbox',
7 templateUrl: './ui-element-checkbox.component.html',
8 styleUrls: ['./ui-element-checkbox.component.less'],
10 export class UiElementCheckBoxComponent extends UiElementBase implements UiElementBaseInterface {
16 ngAfterContentInit() {
17 // Convert the value to boolean (instanceOf does not work, the type is undefined).
18 if (this.value==='true' || this.value==='false') {
19 this.value = this.value==='true'?true:false;
24 this.baseEmitter.emit(this.value);