Reputation: 23
How i can achieve this functionality? - that i want to restrict user to remove item from tag-field base on any condition - user can only insert new item in tag-field
Upvotes: 1
Views: 812
Reputation: 74146
You can use beforedeselect
and return false for canceling the deselection.
For example:
listeners: {
beforedeselect: function(){
return false;
}
}
Working example: https://fiddle.sencha.com/#fiddle/1j1k
Upvotes: 2