2.0.2 • Published 7 months ago
@makeform/checkbox v2.0.2
@makeform/checkbox
Checkbox style widget for users to make multiple choices from multiple options.
Configs
values: Array of string/objects for options in this widget.- when object is used, it contains following fields:
value: actual value pickedlabel: text shown for user to select
- when object is used, it contains following fields:
other: default null. An object for config ofotheroption, with following fields:enabled: default false. shouldotheroption be shown.prompt: default其它orOther. Prompt text forotheroption.requireOnCheck: default false.- when true, the
Otherfield must be filled whenOtheris checked; otherwise, this field will be considered invalid.
- when true, the
layout: defaultinline. decide how to layout options. possible values: eitherinlineorblock.view: view mode related configs.mode: eithertextorfull. defaulttext.text: options are shown as concated text.n/aif no option is chosen.full: all options will be shown with checkbox checked for chosen options.
License
MIT