I am trying to integrate AngularJS with webix.
My Page has multiple accordion items, so i want different div sections for each item and init that div from different angular controller meant for each accordion item. For this I have to use both techniques for initing : Initing from HTML markup and Initing from a JS configuration object.
But its not working.
if anybody knows how to do this, please help me.
code::::
html :::
<div webix-ui view="cols" type="line" width="1300">
<div view="rows">
<!-- row containing header items -->
<div webix-ui="config" webix-ready="loadButtons(root)" id='buttonsDiv' data-ng-controller="ButtonsController" height="40"></div>
<!-- row containing accordion items -->
<div></div>
</div>
</div>
Controller :::
createQuoteApp
.controller(
"ButtonsController",
function($scope) {
// config object
$scope.config = {
isolate : true,
body : {
container : "areaA",
view : "toolbar",
elements : [
{
view : "label",
value : 'Create',
width : 70
},
{
view : "toolbar",
elements : [ {
view : "button",
value : "Save",
width : 45,
css : "tbEmailThread",
type : "image",
inputHeight : 11,
label : "Save",
click : "closeWindow"
} ],
css : "my_toolbar_custom",
width : 805
}
],
css : "my_toolbar",
}
};
// function
$scope.loadData = function(root) {};
});