selectize.js icon indicating copy to clipboard operation
selectize.js copied to clipboard

How to use disabledField config?

Open pham7uan opened this issue 8 years ago • 3 comments

Hi guys, I'm trying build a Selectize with dynamic options disable/enable.I used disabledField config but notthing disable. Please tell me right way to do.Here my config and my data:

scope.selectize_config = {
          persist: true,
          maxItems: 1,
          valueField: 'id',
          labelField: 'name',
          searchField: ['name'],
          placeholder: "Search",
          maxOptions: 10,
          disabledField:'disabled'
};
$scope.selectize_type_options = [
       {name: 'Vendors', id: 'incoming',disabled:true},
       {name: 'Customer', id: 'outcoming',disabled:true},
       {name: 'Manufacturing Operation', id: 'manufacturing',disabled:false},
       {name: 'Internal', id: 'internal',disabled:true}
];

pham7uan avatar Jan 05 '18 08:01 pham7uan

closing stale issues older than one year. If this issue was closed in error please message the maintainers. All issues must include a proper title, description, and examples.

risadams avatar Nov 30 '20 17:11 risadams

Hello, why was this closed? the "disabledField" option is not working according to the documentation.

aledmb avatar Oct 30 '21 09:10 aledmb

Hello, why was this closed? the "disabledField" option is not working according to the documentation.

Hi @aledmb, When development was resumed on the project last year we talked about a process for dealing with older issues and decided that the simplest method for getting the project back on track was to start fresh, and seeing what issues come back into play via community interest.

All the maintainers of this project have other full-time obligations, so changes cannot always happen quickly; we welcome any contributions and PRs.

I am re-opening and will set up a test to see what is happening.

risadams avatar Oct 30 '21 12:10 risadams