How to trigger single click event for only files in webix filemanager

Hey,

I’m using webix file manager. I see there is an event defined by webix which can be triggered after selecting the folder. e.g.

$$(“fmanager”).attachEvent(“onFolderSelect”,function(id){
// your code
});

I want to do the same thing but only for the files. Can we do it? Please guide anyone.

Hi,

The Filemanager has two modes of data representation: files (based on the Webix dataview) and table (based on ui.datatable as well). You can attach onAfterSelect handler to each mode and check the type of the data item:

http://webix.com/snippet/47d02d10

Thanks Listopad.

It’s exactly what i wanted.