agwebix
January 29, 2014, 10:23am
1
Hi,
I am evaluating treetable.
I created sample and getting error:
Uncaught TypeError: Cannot call method ‘attachEvent’ of undefined webix_debug.js:25825
wrap_helper webix_debug.js:25825
(anonymous function)
when treetable is configured.
I created snippet: http://webix.com/snippet/446f0143
Snippet does not show the table, I am missing something, on my machine sample shows table.
Thank you.
agwebix
January 29, 2014, 10:49am
2
I debug webix and see that at line:25839 webix can’t find view…
I also tried to attach event as described in http://docs.webix.com/desktop__angular.html#initingfromconfigobject
“Attaching Events with webix-ready Directive”
I added method to webix-ready but still in the method div could not be found
here is the code
$scope.attachEvents = function(root) {
var tree = root.$$(‘testA’);
tree.attachEvent(“onAfterSelect”, function(id, details) {
alert(details);
});
};
Please help!!!
maksim
January 30, 2014, 8:18am
4
Problem confirmed, webixEvent doesn’t work when you are using configuration from the controller.
I will post the fix later today.
maksim
January 30, 2014, 5:36pm
5
ColCh
August 23, 2014, 7:50am
6
Hi!
Webix can’t attachEvent via directive using deferred angular bootstrap:
angular.element().ready(function () { angular.resumeBootstrap(); });
And it works like a charm after removing angular.element.ready() wrapper.
maksim
August 25, 2014, 4:54am
7
If attachEvent doesn’t work - it means the related UI ( object on which you are calling attachEvent ) was not created yet.