How to use the @material/mwc-base/form-element.js.customElement function in @material/mwc-base

To help you get started, we’ve selected a few @material/mwc-base 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 material-components / material-components-web-components / node_modules / @material / mwc-radio / mwc-radio.js View on Github external
property({ type: Boolean }),
    observer(function (disabled) {
        this.mdcFoundation.setDisabled(disabled);
    })
], Radio.prototype, "disabled", void 0);
__decorate([
    property({ type: String }),
    observer(function (value) {
        this.mdcFoundation.setValue(value);
    })
], Radio.prototype, "value", void 0);
__decorate([
    property({ type: String })
], Radio.prototype, "name", void 0);
Radio = __decorate([
    customElement('mwc-radio')
], Radio);
export { Radio };
//# sourceMappingURL=mwc-radio.js.map
github material-components / material-components-web-components / node_modules / @material / mwc-checkbox / mwc-checkbox.js View on Github external
query('input')
], Checkbox.prototype, "formElement", void 0);
__decorate([
    property({ type: Boolean })
], Checkbox.prototype, "checked", void 0);
__decorate([
    property({ type: Boolean })
], Checkbox.prototype, "indeterminate", void 0);
__decorate([
    property({ type: Boolean })
], Checkbox.prototype, "disabled", void 0);
__decorate([
    property({ type: String })
], Checkbox.prototype, "value", void 0);
Checkbox = __decorate([
    customElement('mwc-checkbox')
], Checkbox);
export { Checkbox };
//# sourceMappingURL=mwc-checkbox.js.map
github material-components / material-components-web-components / node_modules / @material / mwc-switch / mwc-switch.js View on Github external
property({ type: Boolean }),
    observer(function (value) {
        this.mdcFoundation.setDisabled(value);
    })
], Switch.prototype, "disabled", void 0);
__decorate([
    query('.mdc-switch')
], Switch.prototype, "mdcRoot", void 0);
__decorate([
    query('input')
], Switch.prototype, "formElement", void 0);
__decorate([
    query('.mdc-switch__thumb-underlay')
], Switch.prototype, "rippleNode", void 0);
Switch = __decorate([
    customElement('mwc-switch')
], Switch);
export { Switch };
//# sourceMappingURL=mwc-switch.js.map