lion/packages/choice-input/README.md
Thomas Allmer bcd074d1fb feat: use markdown javascript (mdjs) for documentation
Co-authored-by: CubLion <alex.ghiu@ing.com>
2020-05-29 17:01:15 +02:00

22 lines
585 B
Markdown

[//]: # 'AUTO INSERT HEADER PREPUBLISH'
# ChoiceInputMixin
```js script
export default {
title: 'Forms/System/Choice',
};
```
`lion-choice-input` mixin is a fundamental building block of form controls which return a checked-state. It is used in:
- [lion-checkbox](../checkbox/)
- [lion-option](../option/)
- [lion-radio](../radio/)
- [lion-switch](../switch/)
## Features
- Get or set the value of the choice - `choiceValue()`
- Get or set the modelValue (value and checked-state) of the choice - `.modelValue`
- Pre-select an option by setting the `checked` boolean attribute