EXTJS TagField restrict user to remove item from tagField

771 views Asked by At

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

1

There are 1 answers

0
CD.. On

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