constructor new Control.FileChooser
new Control.FileChooser(element, fileHandler[, options])
-
element(String|Element) – A<input type="text">element (or DOM ID). -
fileHandler(Function) – The file lister callback. -
options(Hash) – Additional options for the control.
Create a new file chooser from the given <input type="text">
element.
For details on the fileHandler specifications, see the online documentation.
Additional options:
- icon: The icon to display in the input box
- fileImage: The file icon to use in the chooser
- directoryImage: The directory icon to use in the chooser
- parentImage: The parent directory icon to use in the chooser