FileManager customization

Looking at the control - couple of questions

  1. When I retrieve the list of folders - is it possible to bold the label for a folder if it contains files. So can I control the display of the folder view?
  2. do you support drag and drop of folders with subfolders and documents and upload the files?
  3. can I validate the filenames of each file uploaded (or via drag and drop) and either modify the name or prompt the user to change the name?

(1) It is possible to define your own template for tree items. Template can contain any logic, so it can define different output for empty and not empty folders.

(2) Do you mean drag and drop a folder from local PC to filemanager? It is not supported, as there is no support of such feature in all supported browsers. ( it possible to tweak the filemanager to allow this behavior in the Google Chrome browser )

(3) Yep, you can intercept file uploading event and reject file based on any criteria.

If necessary, I can provide a sample for (1) and (3)

Sample for Item 1 would be great.
I have tried using the templateName - and that works in the file area (right pane) but not in the folders pane.
If possible I would like to see a demo of customizing the folder icon and the way the folder name is displayed.

Hi,

For the Tree you need to customize tree data type (it is “FileTree” by default):

http://webix.com/snippet/99f3251f

Awesome thankyou