UNPKG

aurelia-form

Version:

Makes working with forms just a tad more pleasant.

29 lines (17 loc) 588 B
import {bindable, customElement, bindingMode} from 'aurelia-framework'; import {resolvedView} from 'aurelia-view-manager'; @resolvedView('spoonx/form', 'form-radio') @customElement('form-radio') export class FormRadio { @bindable name; @bindable({defaultBindingMode: bindingMode.twoWay}) value; @bindable({defaultBindingMode: bindingMode.twoWay}) option; @bindable type = 'text'; @bindable classes = ''; @bindable placeholder = ''; @bindable readonly = false; @bindable disabled = false; @bindable options = {}; @bindable autofocus; @bindable required; }