Skip to content

Commit

Permalink
fix(ui): fix QOptionGroup options type #17710
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Jan 16, 2025
1 parent 8962133 commit d07b4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
18 changes: 1 addition & 17 deletions ui/src/components/option-group/QOptionGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,9 @@

"options": {
"type": "Array",
"desc": "Array of objects with value, label, and disable (optional) props. The binary components will be created according to this array; Props from QToggle, QCheckbox or QRadio can also be added as key/value pairs to control the components singularly",
"desc": "Array of objects that the binary components will be created from. For best performance reference a variable in your scope. Canonical form of each object is with 'label' (String), 'value' (Any) and optional 'disable' (Boolean) props (can be customized with options-value/option-label/option-disable props) along with any other props from QToggle, QCheckbox, or QRadio.",
"default": "[]",
"definition": {
"label": {
"type": "String",
"desc": "Label to display along the component",
"required": true,
"examples": [ "'Option 1'", "'Option 2'", "'Option 3'" ]
},
"value": {
"type": "Any",
"desc": "Value of the option that will be used by the component model",
"required": true,
"examples": [ "'op1'", "'op2'", "'op3'" ]
},
"disable": {
"type": "Boolean",
"desc": "If true, the option will be disabled"
},
"...props": {
"type": "Any",
"desc": "Any other props from QToggle, QCheckbox, or QRadio",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/select/QSelect.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

"options": {
"type": "Array",
"desc": "Available options that the user can select from. For best performance freeze the list of options.",
"desc": "Array of objects with available options that the user can select from. For best performance freeze the list of options. Canonical form of each object is with 'label' (String), 'value' (Any) and optional 'disable' (Boolean) props (can be customized with options-value/option-label/option-disable props).",
"default": "[]",
"examples": [
"[ 'Tesla', 'iPhone' ]",
Expand Down

0 comments on commit d07b4fe

Please sign in to comment.