How can I capture the selected item from a dropdown-style list and perform operations based on that selection?
In my list, each item is associated with a key for unique identification, except for 'Create New Filter'.
I am seeking guidance on how to determine if 'Create new filter' is clicked or if another item in the list is selected.
https://i.sstatic.net/djYwS.png
Here is the code snippet:
<ul>
<li v-on:click="create">Create New</li>
<li v-for="item in list" :key="item.id" v-on:click="Change(item.id,item.text)">{{ item.text }}</li>
</ul>