Webix + angularjs datatable from contoller -
i have problem, because datatable empty, data doesn't binding.
html:
<div id="usersformdiv" ng-controller="admincontroller"> <div webix-ui="usersgrid"></div> </div>
controller
$scope.usersgrid ={ view:"datatable", id:"usersgridwebix", autoconfig:true, select:"row", data : [ { id:1,"lp":1, "name":1994,"surname":678790,"email":"xxx@xp.pl","organ":"ogran","location":"lokalizacja 1, lokalizacja 2"} ], columns:[ { header:"lp", id:"lp", width:50}, { header:"imiÄ™", id:"name", width:50}, { header:"nazwisko", id:"surname", width:100}, { header:"email", id:"email", width:150}, { header:"organ", id:"organ", width:100}, { header:"lokalizacja", id:"location", width:150} ] // url: "./app/model/users.json" };
please help.
with webix-ui attribute in div use webix-data="data" put $scope.data = { id:1,"lp":1, "name":1994,"surname":678790,"email":"xxx@xp.pl","organ":"ogran","location":"lokalizacja 1, lokalizacja 2"}
i have same problem, fixed using way, more details refer:-
Comments
Post a Comment