0👍
You can use the onClick function on the option object.
const options = {
onClick(event, activeElements) {
// id of your clicked element
console.log(activeElements.pop()._index);
},
}
Source:stackexchange.com
0👍
You can use the onClick function on the option object.
const options = {
onClick(event, activeElements) {
// id of your clicked element
console.log(activeElements.pop()._index);
},
}