The default action taken when clicking on a file name can be assigned at design time by setting the
fileSelectionAction property to
Preview,
Download,
Display or
None. The default action can be customised for different file types using the client-side event
onBeforeFileSelected. In this example zip files are downloaded, image files are shown in the preview dialog, Word, Excel and PDF documents are displayed in a new window and all other documents are ignored.