Reputation: 4281
I am using extJS tagfield
. Where I am selecting multiple data from dropdown. I want to give one x icon inside fiedld and on click of cross icon how to remove all the selected values from tagfield.
Can any one suggest me how to achive that.
Upvotes: 0
Views: 1137
Reputation: 1461
Here's an example with a button that removes the selected values from a tagfield: https://fiddle.sencha.com/#view/editor&fiddle/1oku
I'm not sure how you would do this with an x inside the tagfield instead of a button. Perhaps as simple as adding a span inside the tag list wrapper and wiring it to do the same as the button in the fiddle example.
Upvotes: 1