select
Description
fires when a new option is selected in a MultiComboParameters
- ev - (object) a CustomEvent object
Example
<script>
function handleSelect(ev) {
const newSelection = ev.detail;
console.log(newSelection);
// check the details for the returned value
}
</script>
<MultiCombo values={[1,2,3]} on:select={handleSelect}/>
Details
The handler function returns an array of objects with options selected in a MultiCombo. For example:
{selected:[
{id: 102, name: 'Petyr Baelish', email: 'big.finger@gmail.com', avatar: 'baelish.jpg'},
{id: 104, name: 'Lord Varys', email: 'little.birds@gmail.com', avatar: 'varys.jpg'}
]}
Related article: Catching the change of selected options