onViewInit

fires before a component of the file manager is initialized

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

Parameters

idstringthe view id
configobjectthe object with view configuration

Example

$$("fmanager").attachEvent("onViewInit": function(id, config){
    // disable multi-selection for "table" and "files" views
    if (id == "table" || id == "files"){
        config.select = true;
    }
});

Related samples

Back to top