change
Description
fires when a new tab is selected in the controlParameters
- value - (number) the id of the newly selected tab
Example
<script>
function handleChange(ev) {
active = ev.value;
console.log(active);
// => 2
}
</script>
<Tabs options={tabs} value={0} onchange={handleChange} />
Details
The handler function returns the id of a newly selected tab.
Related article: Catching the change of the selected tab
Related sample: Tabs