init

inits Webix component defined by markup in HTML layout

WebixView init(string node,string target);

Deprecated

Will be removed in Webix 7.0

Parameters

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

Returns

WebixViewnewly constructed UI

Example

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

Related samples

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

See also
Back to top