ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
43 lines (35 loc) • 835 B
text/typescript
import {
Directive,
ElementRef,
HostBinding,
Input,
} from '@angular/core';
import { toBoolean } from '../util/convert';
export class NzThDirective {
private _checkbox = false;
private _expand = false;
_el: HTMLElement;
nzWidth;
set nzCheckbox(value: boolean) {
this._checkbox = toBoolean(value);
}
get nzCheckbox(): boolean {
return this._checkbox;
}
set nzExpand(value: boolean) {
this._expand = toBoolean(value);
}
get nzExpand(): boolean {
return this._expand;
}
constructor(private _elementRef: ElementRef) {
this._el = this._elementRef.nativeElement;
}
}