Apologies if this is well documented, but I haven’t been able to figure out how to include a fragment of plain old html inside a webix layout.
For example: assume a layout with rows.
I’d like to put this html inside a row:
so that later on I will be able to use a third party diagramming tool to render into that div.
I tried htmlform, but the third party library can’t find the ‘diagram1’ div even though it’s clearly visible on the page.
can’t get the div to render, it’s just a div with id=“diagram1”
Got this to work, first I made a custom component, which didn’t help, then I made sure that my component was visible before I tried to look for the dom element.
Seems that if you have a multiview, and a component is not visible, then it’s embedded html is not part of the dom?
maksim
February 2, 2015, 12:20pm
4
Seems that if you have a multiview, and a component is not visible, then it’s embedded html is not part of the dom?
Yep, hidden views are removed from the DOM.
It improves performance of the app ( smaller dom and as result faster app )
You can use $$(“view_id”).$view to access the root html element of any view, visible or hidden.