I use fancytree with lazyLoad. I'm looking for an event that fires AFTER new children loaded via lazyLoad are available in the DOM.
var fancytree_options = {
extensions: ["glyph"],
checkbox: false,
glyph: glyph_opts,
icon: false,
autoCollapse: true,
debugLevel: 0,
source: {url: URL},
init : function(event, data) {
// ONLY first time
},
loadChildren: function(event, data) {
// BEFOR Children loaded in DOM
},
createNode: function(event, data) {
// BEFOR Child visible in DOM
}
}
$("#treeBlock").fancytree(fancytree_options);
I have read through the possible events and tried some of them: https://wwwendt.de/tech/fancytree/doc/jsdoc/global.html#FancytreeEvents
init: will only be fired the first time the tree becomes fully visible in the DOM. After new children are added, the event is not fired again.
loadChildren: BEFORE the new children are integrated into the DOM.
createNode: BEFORE the child is in the DOM
renderTitle: With this I have successfully edited the title. But at this time the title (which can also be HTML) is not yet available in the DOM.
I am looking for an event that will be activated after new children are in the tree and they are available in the DOM.
My UseCase: The title of the node consists of HTML and on elements additional clicks have to be registered (not nothing to do with FancyTree)