Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
set nzVisible(value: boolean) {
const visible = toBoolean(value);
if (this._visible !== visible) {
this._visible = visible;
this.nzVisibleChange.emit(visible);
}
}
set nzHasFeedback(value: boolean) {
this._hasFeedback = toBoolean(value);
this.setControlClassMap();
}
set nzNoColon(value: boolean) {
this.noColon = toBoolean(value);
}
get nzNoColon(): boolean {
set nzShowUploadList(value: boolean | ShowUploadListInterface) {
this._showUploadList = typeof value === 'boolean' ? toBoolean(value) : value;
}
setDefaultNoColon(value: boolean): void {
this.defaultNoColon = toBoolean(value);
this.cdr.markForCheck();
}
set nzAutoClearSearchValue(value: boolean) {
this.nzSelectService.autoClearSearchValue = toBoolean(value);
}
set nzExpand(value: boolean) {
if (toBoolean(value)) {
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
this.renderer.addClass(this.elementRef.nativeElement, 'ant-table-expanded-row');
} else {
this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');
this.renderer.removeClass(this.elementRef.nativeElement, 'ant-table-expanded-row');
}
}
set nzServerSearch(value: boolean) {
this.nzSelectService.serverSearch = toBoolean(value);
}
set nzDisabled(value: boolean) {
this._disabled = toBoolean(value);
this.nzSelectService.disabled = this._disabled;
this.nzSelectService.check();
if (this.nzDisabled && this.isInit) {
this.closeDropDown();
}
}
set nzShowTime(value: object | boolean) {
this._showTime = typeof value === 'object' ? value : toBoolean(value);
}