Documentation

onServerConfig

fires when the component loads data containing the config tag (key) inside.

void onServerConfig(config){ ... };

Parameters

configobject the config object

Example

some.attachEvent("onServerConfig", function(config){
    //... some code here ... 
});

Details

When the parser processes data and 'sees' the tag (key) named as "config" it invokes the onServerConfig event (before onAfterLoad).

Applicable only to data in the XML, JSON formats


You might want to change the name of tag(key) the parser should look for. In this case, use the DataDriver class and the next command:

webix.DataDriver.[format].config = "/*/[keyword]";


For example, to make the parser search for the "conf" tag instead of "config" in the XML data, you should call the command as in:

webix.DataDriver.xml.config = "/*/conf";
Back to top