change
Description
fires on a color changeParameters
- ev - (object) a CustomEvent object
Example
<script>
function handleChange(ev) {
const newColor = ev.detail.value;
console.log(newColor);
// => "#75FFD6"
}
</script>
<ColorBoard bind:color on:change={handleChange}/>
Related article: Catching the change of the selected color