How to use the @angular/flex-layout.validateBasis function in @angular/flex-layout

To help you get started, we’ve selected a few @angular/flex-layout 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 swimlane / ngx-ui / release / components / split / split-area.directive.js View on Github external
SplitAreaDirective.prototype.getInputFlexParts = function () {
        var flex = this.flexDirective;
        var basis = this.fxFlex || '1 1 1e-9px';
        return validateBasis(String(basis).replace(';', ''), flex._queryInput('grow'), flex._queryInput('shrink'));
    };
    SplitAreaDirective.prototype.updateStyle = function (flexBasis) {
github swimlane / ngx-ui / src / components / split / split-area.directive.ts View on Github external
getFlexParts() {
    const flex = this.flexDirective as any;
    const basis = flex._queryInput('flex') || '1 1 1e-9px';
    return validateBasis(
      String(basis).replace(';', ''),
      (flex as any)._queryInput('grow'),
      (flex as any)._queryInput('shrink')
    );
  }
github swimlane / ngx-ui / projects / swimlane / ngx-ui / src / lib / components / split / split-area.directive.ts View on Github external
private getCurrentFlexParts() {
    const flex = this.flexDirective;
    const basis = (flex && flex.activatedValue) || '1 1 1e-9px';
    return validateBasis(String(basis).replace(';', ''), flex.grow, flex.shrink);
  }
}
github swimlane / ngx-ui / src / components / split / split-area.directive.ts View on Github external
getInputFlexParts() {
    const flex = this.flexDirective as any;
    const basis = this.fxFlex || '1 1 1e-9px';
    return validateBasis(
      String(basis).replace(';', ''),
      (flex as any)._queryInput('grow'),
      (flex as any)._queryInput('shrink')
    );
  }