Hi,
In my site, i have a sidebar menu.
In ready of sidebar i need change the text of every item. and i use this code:
...
view:"sidebar",
ready:function(){
$$("menu").filter(function (obj) {
if (obj.value === "INITIAL TEXT 1_1")
return false;
else
return true;
});
$$("menu").data.each( function (obj) {
var nodeObj = $$("menu").getItem(obj.id);
var nodeObjCurrentValue = nodeObj.value;
nodeObj.value = "CHANGE TEXT";
}
);
}
When menu is open, show correct text en every item, but when i toggle the sidebar , subitems maintain “old text”
Please check this snippet ,
https://snippet.webix.com/2rdtf7dd
values in data are:
INITIAL TEXT
…INITIAL TEXT_1_1
…INITIAL TEXT_1_2
is OK,
In ready of sidebar menu change items value to “CHANGE TEXT” and filter where value != “INITIAL TEXT_1_1” then show
CHANGE TEXT
…CHANGE TEXT
is OK
When click in button toogle and check sidebar menu subitems , show:
CHANGE TEXT
…INITIAL TEXT_1_1
…INITIAL TEXT_1_2
is NOT OK
Is a bug or i need to do something more to change text in a sidebar menu?.
Thanks in advance.