Q-select and values
-
I receive these data on created cycle of component:
{title: ‘any title’, type: ‘medical’, id: ‘mongo objectid here’}
and I make my q-select passing title and id to it. But, how could I get a third attribute/parameter on change event of my select to get the type value?
Example: I would like to get, on change event of my select, the value of the selected option and in somewhere get also the type. In others words, something like that:
<select>
<option value=“any value” type=“medical”>Any title </option>
<option value=“any value 2” type=“child”>Another title here </option>
</select>