How to use the @delon/util.toNumber function in @delon/util

To help you get started, we’ve selected a few @delon/util 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-alain / delon / packages / chart / mini-progress / mini-progress.component.ts View on Github external
private fixNum(value: number) {
    return Math.min(Math.max(toNumber(value), 0), 100);
  }
github ng-alain / delon / packages / abc / simple-html-form / item.component.ts View on Github external
set labelWidth(value: any) {
    this._labelWidth = toNumber(value, 0);
  }
  get labelWidth() {
github ng-alain / delon / packages / abc / simple-html-form / item.component.ts View on Github external
set col(value: any) {
    this._span = 24 / toNumber(value, 2);
  }
  get col() {
github ng-alain / delon / packages / abc / desc-list / desc-list.component.ts View on Github external
set gutter(value: any) {
    this._gutter = toNumber(value);
  }
  private _gutter = 32;
github ng-alain / delon / packages / abc / edit / edit-container.component.ts View on Github external
set gutter(value: number) {
    this._gutter = toNumber(value);
  }
  private _gutter: number;
github ng-alain / delon / packages / abc / desc-list / desc-list.component.ts View on Github external
set col(value: any) {
    this._col = toNumber(value);
  }
  private _col = 3;