Hi Bogdan,
Thanks for using Syncfusion Products.
We have checked your reported query, you can use the item property from the argument in the select event to get the selected value. Please check the below code snippet.
Codesnippet:
|
<template>
<div>
<ejs-menu :items="menuItems" :select="select"></ejs-menu>
</div>
</template>
<script>
export default {
data: function () {
return {
menuItems: [
{
text: "Events",
items: [
{ text: "Conferences" },
{ text: "Music" },
{ text: "Workshops" },
],
},
{
text: "Movies",
items: [{ text: "Now Showing" }, { text: "Coming Soon" }],
},
{
text: "Directory",
items: [{ text: "Media Gallery" }, { text: "Newsletters" }],
},
{
text: "Queries",
items: [{ text: "Our Policy" }, { text: "Site Map" }],
},
{ text: "Services" },
],
};
},
methods: {
select: function (args) {
console.log(args.item.text);
},
},
};
</script> |
For your reference, we have prepared a sample based on this. Please check the below link.
Please get back to us, if you need further assistance.
Regards,
Gayathri K