<b-form-select> options and title?
See original GitHub issueHi are there any plans til implement support for title attribute on options (preferly rendered by the v-b-tooltip)?
Something like this:
<template>
<div>
<b-form-select v-model="selected" :options="options"></b-form-select>
select>
<div class="mt-3">Selected: <strong>{{ selected }}</strong></div>
</div>
</template>
<script>
export default {
data() {
return {
selected: null,
options: [
{ value: null, text: 'Please select an option' },
{ value: 'a', text: 'This is First option' },
{ value: 'b', text: 'Selected Option' },
{ value: { C: '3PO' }, text: 'This is an option with object value' },
{ value: 'd', text: 'This one is disabled', disabled: true }
{ value: 'xyz', text: 'VeryComplex option', title:'My very good description for the complex option'}
]
}
}
}
</script>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Form Select | Components - BootstrapVue
Generate your select options by passing an array or object to the options props: ... Feel free to mix the options prop with...
Read more >Pass selected option <b-form-select> to axis post from child to ...
All my input fields are getting passed but I can't get the value in the <b-form-select> to pass. How do I pass the...
Read more >v-model on b-form-select not working - CodePen
Adding Classes. In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template....
Read more >Form | Components | BootstrapVue - API Manual
Form. BootstrapVue form component and helper components that optionally support inline form styles and validation states.
Read more >Vue Select - examples & tutorial. Bootstrap & Material Design
Vue Bootstrap 5 Select. Vue Select fields components are used for collecting user provided information from a list of options. Note: Read the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are no plans yet for adding title attributes (also note
v-b-tooltip
will not work as expected on<option>
elements).You can, however, do the following to get the
title
attributes set:The default slot of
<b-form-select>
’ provides you greater control over how the options are rendered.Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!