Documentation

init

inits Webix component defined by markup in HTML layout

WebixView init(string node,string target);

Parameters

nodestringdatasource (by default data is taken from document body).
targetstringwhere should the newly created component be placed.

Returns

WebixViewnewly constructed UI

See also

Example

//data is taken from and placed to document body
var ui = webix.markup.init();

Related sample:  Load UI by ajax
Details

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

Back to top