How to use the ng-zorro-antd/core.toBoolean function in ng-zorro-antd

To help you get started, we’ve selected a few ng-zorro-antd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NG-ZORRO / ng-zorro-antd / components / tooltip / base / nz-tooltip-base-legacy.component.ts View on Github external
set nzVisible(value: boolean) {
    const visible = toBoolean(value);
    if (this._visible !== visible) {
      this._visible = visible;
      this.nzVisibleChange.emit(visible);
    }
  }
github NG-ZORRO / ng-zorro-antd / components / form / nz-form-control.component.ts View on Github external
set nzHasFeedback(value: boolean) {
    this._hasFeedback = toBoolean(value);
    this.setControlClassMap();
  }
github NG-ZORRO / ng-zorro-antd / components / form / nz-form-label.component.ts View on Github external
set nzNoColon(value: boolean) {
    this.noColon = toBoolean(value);
  }
  get nzNoColon(): boolean {
github NG-ZORRO / ng-zorro-antd / components / upload / nz-upload.component.ts View on Github external
set nzShowUploadList(value: boolean | ShowUploadListInterface) {
    this._showUploadList = typeof value === 'boolean' ? toBoolean(value) : value;
  }
github NG-ZORRO / ng-zorro-antd / components / form / nz-form-label.component.ts View on Github external
setDefaultNoColon(value: boolean): void {
    this.defaultNoColon = toBoolean(value);
    this.cdr.markForCheck();
  }
github NG-ZORRO / ng-zorro-antd / components / select / nz-select.component.ts View on Github external
set nzAutoClearSearchValue(value: boolean) {
    this.nzSelectService.autoClearSearchValue = toBoolean(value);
  }
github NG-ZORRO / ng-zorro-antd / components / table / nz-tr.directive.ts View on Github external
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');
    }
  }
github NG-ZORRO / ng-zorro-antd / components / select / nz-select.component.ts View on Github external
set nzServerSearch(value: boolean) {
    this.nzSelectService.serverSearch = toBoolean(value);
  }
github NG-ZORRO / ng-zorro-antd / components / select / nz-select.component.ts View on Github external
set nzDisabled(value: boolean) {
    this._disabled = toBoolean(value);
    this.nzSelectService.disabled = this._disabled;
    this.nzSelectService.check();
    if (this.nzDisabled && this.isInit) {
      this.closeDropDown();
    }
  }
github NG-ZORRO / ng-zorro-antd / components / date-picker / date-range-picker.component.ts View on Github external
set nzShowTime(value: object | boolean) {
    this._showTime = typeof value === 'object' ? value : toBoolean(value);
  }