onViewInit

fires before inner view initialization

void onViewInit(string|number id,object config){ ... };

Parameters

idstring|numberinner view id
configobjectan object with a view configuration

Example

// initialize filters in a different layout
webix.ui({
    id: "pivot",
    view: "pivot",
    on:{
     onViewInit: function(name, config){
         if(name == "filters" && $$("pivotFilters"))
              webix.ui(config.elements, $$("pivotFilters"));
         config.elements = false;
     }
    },
    ...
});

Related samples

Details

The event is also called for Pivot Table on "filters" view initialization and for views of pivot's configuration popup.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of javascript pivot product.