Skip to content
Levure helper for creating a file browser control in your application
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

File Browser Helper

The File Browser helper is an example of a helper that extends the DataView Tree behavior. It will list the folders and files of a root folder and allow the user to drill down into the contents of sub-folders.

This helper includes a behavior script that can be assigned to a DataView. When in use the behavior chain of the DataView group control is as follows:

File Browser DataView Tree Behavior > DataView Tree Behavior > DataView Behavior

The helper includes the row templates necessary for display files and folders.

Note that this helper requires the DataView Tree helper and DataView helper.


The DataView Demo application includes an example of using this helper:

Including File Browser in your project

To include the File Browser Dataview control in your project (using git):

  1. Submodule the File Browser Dataview control to app/helpers/file_browser
  2. Submodule the DataView helper to app/helpers/dataview
  3. Submodule the DataView Tree helper to app/helpers/dataview-tree


To create a File Browser DataView control call the command createNewFileBrowserDataView while working in the IDE. This will copy the "DataView Template" group from the "DataViewControlTemplate" stack that comes with the DataView helper onto the current card of the current stack. It will also set the necessary behaviors and properties in order or the File Browser to work.


To display the contents of a folder set the dvRootFolder property.


on mouseUp
	answer folder "Select folder to display:"
	if it is not empty then
		set the dvRootFolder of group "File Browser DataView" to it
	end if
end mouseUp


You can’t perform that action at this time.