lx-radio-button
is a directive that create an input radio element.
lx-radio-button-label
for the label and lx-radio-button-help
for the helper message.
ng-disabled
or disabled
attribute.
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, ...). |