-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<b-form-select>: Add the variable to make a tree #3222
<b-form-select>: Add the variable to make a tree #3222
Comments
Currently, no, but you can loop through your own options list and generate the appropriate This would be hard to implement, as the |
It would be nice to have a way to do this, instead of having to iterate over my values and craft the option group and options inside them myself. [
{value: 'A', text: 'A'},
{group: 'B', options: [
{value: 'C', text: 'C'},
]}
] (But in the end, it does not really matter how to express an optgroup, we'll fiddle with our data anyway.) |
We will see if we can get this into release v2.1.0 possibly |
…option-group components (closes #3222) (#4267) * feat(b-form-select): add group/tree support and dedicated option and option-group components * Improve option property handling * Update package.json * Nested `<optgroup>`'s is invalid HTML... * remove duplicate import * Update index.js * Update mixin-options.js * Update form-datalist.spec.js * Create form-select-option.spec.js * Update form-options.js * Create form-select-option-group.spec.js * Update form-select.spec.js * Improve warnings * Update form-select.spec.js * Update form-select.spec.js * Update README.md * Update README.md * Update package.json * Update _slug.js * Update componentdoc.vue * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md
BootstrapVue v2.2.0 has been released. |
Is it possible to use ' b-form-select ' for a ' optgroup ' from variable:
options: [
{ value: 'A', text: 'Option A' },
{ value: 'B', text: 'Option B' ,
children: [
{ value: 'BA', text: 'Option BA' },
{ value: 'BB', text: 'Option BB' }
]
}
],
The text was updated successfully, but these errors were encountered: