context
Description
Optional. A context object related to the clicked menu itemUsage
context?: any;
Example
<script setup>
function clicked(ev){
const { context, action } = ev;
if (action)
active[context] = action.id;
}
</script>
<template>
<Menu :options="options" :onclick="clicked"/>
</template>
Details
When a user clicks on an item, Menu triggers the "click" event, where event.detail contains an object related to the clicked menu item.