Umair Shahid
Umair Shahid

Reputation: 23

EXTJS TagField restrict user to remove item from tagField

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

Answers (1)

CD..
CD..

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

Related Questions