Overwrite filemanager.config.templateIcon

Hi,

we are currently facing an issue with the filemanager.
We want to view thumbnails in “files” list/view.

We could overwrite the function “$$(fileManagerId).config.templateIcon” but it’s not called on output (common is called). We made a quickfix at *_debug.js, but then other problems occur.

You know a way to overwrite the common.config.templateIcon?

We used the trial version for filemanager with webix UI v.3.0.6.

Hi,

you need to set templateIcon directly in Filemanager init configuration:

view: "filemanager",
templateIcon: function(item, common){
   return ...;
}

If you need to change the template dynamically, you need to apply it to “files” and “table” views:

$$(fileManagerId).$$("table").type.templateIcon = function(){...};
$$(fileManagerId).$$("files").type.templateIcon = function(){...};

Thank you. Works fine