ui

the object constructor. Creates a new instance of the specified view

object ui(object config, [object|string parent,object|string|number replacement] );
configobjectthe view configuration
parentobject|stringobject or id of parent component
replacementobject|string|numberobject/id of the component being replaced, or index at which a new component will be inserted among the parent's children
objecta view object

Example

var dtable = webix.ui({ view:"datatable", ... });

Related samples

Details

If you want to init a Webix component, only the first parameter is needed.

If you want to rebuild the existing layout or replace some component in it, make use of additional parameters. Read more in the Dynamic UI Modifications article.

Note that the third parameter passed as index is applied only to the layout and layout-like views. It defines the position where a new component or control will be inserted among the children of the parent component. It works the same as the index parameter of the addView() method of the layout-like widgets. Check the details.

See also
Back to top