the object constructor. Creates a new instance of the specified view
config | object | the view configuration |
parent | object|string | object or id of parent component |
replacement | object|string|number | object/id of the component being replaced, or index at which a new component will be inserted among the parent's children |
object | a view object |
var dtable = webix.ui({ view:"datatable", ... });
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.