Skip to main content

change

Description

fires when a new value is selected in a multicombo

Parameters

  • ev - (object) a CustomEvent object. Its detail property contains:
    • value - (array) an array with the previously and newly selected options' ids

Example

<script>
function handleChange(ev){
const newValue = ev.detail.value;
console.log(newValue);
// =>[101,104]
}
</script>

<MultiCombo options={users} textField="name" value={[104]} on:change={handleChange}/>

Details

The handler function receives an array with the previously and newly selected options' ids.

Related article: Catching the change of selected options