angularjs - How to add 'ng-disabled' in ui-grid-edit-datepicker directive? -


hope can me.

how possible enable "ng-disabled" datepicker within ui-grid?

i using directive provided here github.com/joiler/ui-grid-edit-datepicker

the cell template looks this:

var celldatefilter = 'textdate:"yyyy-mm-dd"';  var celleditabletemplatedate = '<div  ><form name="inputform" ><div ui-grid-edit-datepicker datepicker-options="datepickeroptions" row-field="model_col_field"  ng-class="\'colt\' + col.uid"  ng-disabled="row.entity.newscontentid!=0"  ></div></form></div>';  $scope.columns = [{   field: 'pubdate', enablehiding: false, enablecelledit: true, displayname: 'pubdate', width: 100, minwidth: 100, enablefiltering: true, visible: true,                               cellfilter: celldatefilter,                               editablecelltemplate: celleditabletemplatedate   }]; 

i need disable cells passing boolean values.

ui-grid: v4.0.3 | angular 1.63

many

arash

update: 2017-04-09

i got idea joiler use celleditablecondition parameter. many him. able disable edit on cell. https://github.com/joiler/ui-grid-edit-datepicker/issues/10

 celleditablecondition: function($scope) {                     return $scope.row.entity.newscontentid == 0;                 }, 


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -