inits Webix component defined by markup in HTML layout
Will be removed in Webix 7.0
node | string | datasource (by default data is taken from document body). |
target | string | where should the newly created component be placed. |
WebixView | newly constructed UI |
//data is taken from and placed to document body
var ui = webix.markup.init();
By default, markup is taken from document.body node while the target either concides with datasource node or specified manually.
Data can be as well taken from separate file or come as server response:
webix.ajax("data/config.xml", function(text, data){
var config = webix.markup.parse(text, "xml");
webix.ui(config);
});
Related sample: Load UI by AJAX