photonui.Base Class
Base class for all PhotonUI Classes.
wEvents:
- destroy:
- description: called before the widget was destroyed.
- callback: function (widget)
Constructor
photonui.Base
(
-
params
Parameters:
-
params
ObjectAn object that can contain any property that will be set to the class (optional).
Item Index
Methods
Properties
Methods
_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.
_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.
registerCallback
(
-
id
-
wEvent
-
callback
-
thisArg
Register a callback for any PhotonUI/Widget event (called wEvent).
Callback signature:
function (Object(Base/Widget) [, arg1 [, arg2 [, ...]]])