photonui.FileManager Class
Open files from the standard "FileOpen" dialog and drag & drop.
wEvents:
- file-open:
- description: File selected or dropped.
- callback: function(widget, fileBlob, x, y) //(x=y=undefined if using a dialog)
Constructor
photonui.FileManager
(
-
params
Parameters:
-
params
ObjectAn object that can contain any property of the widget (optional).
Item Index
Methods
Methods
__onLocaleChanged
()
private
Called when the locale is changed.
_bindEvent
(
private
-
id
-
element
-
evName
-
callback
-
[options]
Javascript event binding (for internal use).
Parameters:
_callCallbacks
(
private
-
wEvent
-
params
Call all callbacks for the given wEvent.
NOTE: the first argument passed to the callback is the current widget.
NOTEĀ²: if the thisArg of the callback is null, this will be binded to the current widget.
_openFile
(
private
-
file
-
x
-
y
Check file and call callbacks.
_updateAccepted
()
private
Update accepted mimes/extentions.
_updateProperties
(
deprecated
private
-
properties
Force the update of the given properties.
This method is deprecated.
One should use '@photonui-update' abitbol's annotation on concerned properties.
Parameters:
-
properties
ArrayThe properties to update.
destroy
()
Destroy the class.
open
()
Open the FileOpen dialog to allow user to browse its HDD for a file.
registerCallback
(
-
id
-
wEvent
-
callback
-
thisArg
Register a callback for any PhotonUI/Widget event (called wEvent).
Callback signature:
function (Object(Base/Widget) [, arg1 [, arg2 [, ...]]])
Properties
__events
Object
private
Object containing references javascript events binding (for widget
internal use).