I would like to use $$ to find elements from a window webix-ready root param, in the same vein as seen in http://docs.webix.com/desktop__angular.html for config:
<body ng-controller="webixTestController">
<div webix-ui="config" webix-ready="doSome(root)"></div>
</body>
app.controller("webixTestController", function($scope){
$scope.doSome = function(root){
var list = root.$$("a1"); //referring to list via root object
var template = root.$$("a2"); //referring to template via root object
In my code below I am not getting $$ available on root (the latter correlates to the window itself). That’d be ideal as I have got dom elements with the same id on other windows. Any fix or alternative you can think of?
<div webix-ui view="window" id="addRecipientsWindow"
position="center" modal="true" height="700" width="900" move="true"
webix-ready="addRecipientsWindowReady(root)">
[controller]
function addRecipientsWindowReady(root) {
// unfortunately root.$$ is not available here
}