Radio button

lx-radio-button is a directive that create an input radio element.

The radio button label can be specified as transcluded element.
To specify a helper message, two directives need to be transcluded.
lx-radio-button-label for the label and lx-radio-button-help for the helper message.
Disabled style will automaticly be applied when using ng-disabled or disabled attribute. Main colors defined in dist/scss/core/settings/defaults.scss can be used to create colored radio buttons.
Parameter Type Default Description
lx-color string accent Define the radio button color. Options: colors defined in colors and sizes section in dist/scss/core/settings/defaults.scss
name string Property name of the form under which the control is published.
ng-change string Angular expression to be executed when input changes due to user interaction with the input element.
ng-disabled expression If the expression is truthy, then the disabled attribute will be set on the element.
ng-model* string Assignable angular expression to data-bind to.
ng-value string Angular expression to which ngModel will be be set when the radio is selected. Should be used instead of the value attribute if you need a non-string ngModel (boolean, array, ...).
value string The value to which the ngModel expression should be set when selected. Note that value only supports string values, i.e. the scope model needs to be a string, too. Use ngValue if you need complex models (number, object, ...).