How to use @aurelia-ux/core - 10 common examples

To help you get started, we’ve selected a few @aurelia-ux/core 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 aurelia / ux / packages / chip-input / src / ux-chip-input.ts View on Github external
this.textbox.setAttribute('placeholder', attributeValue);
        this.element.removeAttribute('placeholder');
      }
    }

    if (this.value) {
      this.chips = this.value.split(this.separator);
    }

    if (normalizeBooleanAttribute('disabled', this.disabled)) {
      this.textbox.setAttribute('disabled', '');
      this.chiprepeat.removeAttribute('deletable');
      this.tagrepeat.removeAttribute('deletable');
    }

    if (normalizeBooleanAttribute('readonly', this.readonly)) {
      this.textbox.setAttribute('readonly', '');
      this.chiprepeat.removeAttribute('deletable');
      this.tagrepeat.removeAttribute('deletable');
    }
  }
github aurelia / ux / packages / button / dist / native-modules / ux-button.js View on Github external
UxButton.prototype.disabledChanged = function (newValue) {
        if (normalizeBooleanAttribute('disabled', newValue)) {
            this.button.setAttribute('disabled', '');
        }
        else {
            this.button.removeAttribute('disabled');
        }
    };
    UxButton.prototype.onMouseDown = function (e) {
github aurelia / ux / packages / button / dist / commonjs / index.js View on Github external
UxButton.prototype.disabledChanged = function (newValue) {
        if (core.normalizeBooleanAttribute('disabled', newValue)) {
            this.button.setAttribute('disabled', '');
        }
        else {
            this.button.removeAttribute('disabled');
        }
    };
    UxButton.prototype.onMouseDown = function (e) {
github aurelia / ux / packages / button / dist / native-modules / index.js View on Github external
UxButton.prototype.disabledChanged = function (newValue) {
        if (normalizeBooleanAttribute('disabled', newValue)) {
            this.button.setAttribute('disabled', '');
        }
        else {
            this.button.removeAttribute('disabled');
        }
    };
    UxButton.prototype.onMouseDown = function (e) {
github aurelia / ux / packages / button / dist / es2015 / ux-button.js View on Github external
disabledChanged(newValue) {
        if (normalizeBooleanAttribute('disabled', newValue)) {
            this.button.setAttribute('disabled', '');
        }
        else {
            this.button.removeAttribute('disabled');
        }
    }
    onMouseDown(e) {
github aurelia / ux / packages / radio / dist / es2015 / ux-radio.js View on Github external
get isDisabled() {
        return normalizeBooleanAttribute('disabled', this.disabled);
    }
    bind() {
github aurelia / ux / packages / chip-input / dist / native-modules / index.js View on Github external
UxChipInput.prototype.readonlyChanged = function (newValue) {
        if (normalizeBooleanAttribute('readonly', newValue)) {
            this.textbox.setAttribute('readonly', '');
            this.chiprepeat.removeAttribute('deletable');
            this.tagrepeat.removeAttribute('deletable');
        }
        else {
            this.textbox.removeAttribute('readonly');
            this.chiprepeat.setAttribute('deletable', '');
            this.tagrepeat.setAttribute('deletable', '');
        }
    };
    UxChipInput.prototype.themeChanged = function (newValue) {
github aurelia / ux / packages / chip-input / src / ux-chip-input.ts View on Github external
public disabledChanged(newValue: boolean | string) {
    if (normalizeBooleanAttribute('disabled', newValue)) {
      this.textbox.setAttribute('disabled', '');
      this.chiprepeat.removeAttribute('deletable');
      this.tagrepeat.removeAttribute('deletable');
    } else {
      this.textbox.removeAttribute('disabled');
      this.chiprepeat.setAttribute('deletable', '');
      this.tagrepeat.setAttribute('deletable', '');
    }
  }
github aurelia / ux / packages / radio / dist / native-modules / index.js View on Github external
get: function () {
            return normalizeBooleanAttribute('disabled', this.disabled);
        },
        enumerable: true,
github aurelia / ux / packages / switch / src / ux-switch.ts View on Github external
public get isDisabled() {
    return normalizeBooleanAttribute('disabled', this.disabled);
  }

@aurelia-ux/core

A user experience framework for Aurelia.

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis