Is there a way to supply the columnDefs to ui-grid with a promise? -


the data ui-grid seems support promise of data, columndef option not seem to. if data coming in dynamic , column defs loaded dynamically how can columns definition specified promise.

you can supply columndefs promise's return value in .then() handler:

$scope.gridoptions = {   data: [ ... ] };  columnservice.getcolumns()   .then(function (columndefs) {     $scope.gridoptions.columndefs = columndefs;   }); 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -