photonui.PopupMenu Class
Popup Menu.
Constructor
photonui.PopupMenu
()
Item Index
Methods
- __onContextMenu
- __onLocaleChanged
- _bindEvent
- _buildHtml
- _callCallbacks
- _lockUpdate
- _registerWEvents
- _unbindEvent
- _updateLayout
- _updateProperties deprecated
- _visibilityChanged
- addChild
- addClass
- center
- destroy
- empty
- hide
- popupWidget
- popupXY
- registerCallback
- removeCallback
- removeChild
- removeClass
- show
- unparent
Properties
- __callbacks
- __events
- __html
- absolutePosition
- child
- childName
- children
- childrenNames
- containerNode
- contextMenu
- contextMenuName
- data
- height
- horizontalChildExpansion
- html
- iconVisible
- layoutOptions
- maxHeight
- maxWidth
- minHeight
- minWidth
- name
- offsetHeight
- offsetWidth
- padding
- parent
- parentName
- position
- tooltip
- verticalChildExpansion
- visible
- width
- x
- y
Methods
__onContextMenu
(
private
-
event
Called when the context menu should be displayed.
Parameters:
-
event
Object
__onLocaleChanged
()
private
Called when the locale is changed.
_bindEvent
(
private
-
id
-
element
-
evName
-
callback
-
[options]
Javascript event binding (for internal use).
Parameters:
_buildHtml
()
private
Build the widget HTML.
_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.
_lockUpdate
()
private
Lock the update of the layout.
_updateLayout
()
private
Update the layout.
_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.
_visibilityChanged
(
private
-
visibility
Called when the visibility changes.
Parameters:
-
visibility
BooleanCurrent visibility state (otptional, defaut=this.visible)
addChild
(
-
widget
-
layoutOption
Add a widget to the layout.
Parameters:
-
widget
photonui.WidgetThe widget to add. -
layoutOption
ObjectSpecific option for the layout (optional).
addClass
(
-
className
Add a class to the outer HTML element of the widget.
Parameters:
-
className
StringThe class to add.
center
()
Center the window.
destroy
()
Destroy the widget.
empty
()
Destroy all children of the layout
hide
()
Hide the widget (equivalent to widget.visible = false).
popupWidget
(
-
widget
Pop the window at the best position for the given widget.
Parameters:
-
widget
photonui.Widget
registerCallback
(
-
id
-
wEvent
-
callback
-
thisArg
Register a callback for any PhotonUI/Widget event (called wEvent).
Callback signature:
function (Object(Base/Widget) [, arg1 [, arg2 [, ...]]])
removeChild
(
-
widget
Remove a widget from the layout.
Parameters:
-
widget
photonui.WidgetThe widget to remove.
removeClass
(
-
className
Remove a class from the outer HTML element of the widget.
Parameters:
-
className
StringThe class to remove.
show
()
Display the widget (equivalent to widget.visible = true).
unparent
()
Detache the widget from its parent.