Class SS.control.popup
Popup. Makes an element popup on a given event.
Defined in: SS.control.popup.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
Identifier of control that calls the popup.
|
|
|
Class style sheet applied to the control.
|
|
|
Number of milliseconds to wait after the offevent has occured
before hiding the popup.
|
|
|
Identifier of the popup control.
|
|
|
Name of the event, or comma seperated list of event names, to deactivate upon.
|
|
|
Number of pixels left from the mouse pointer that the menu is displayed.
|
|
|
Number of pixels below from the mouse pointer that the menu is displayed.
|
|
|
Name of the event, or comma seperated list of event names, to activate upon.
|
|
|
Function called or evaluated {String} whenever the popup has been made invisible (hidden).
|
|
|
Function called or evaluated {String} whenever the popup has been made visible.
|
|
|
Set to override the default horizontal popup position.
|
|
|
Set to override the default vertical popup position.
|
| Method Attributes | Method Name and Description |
|---|---|
|
hide()
Hides the popup
|
|
|
render()
Renders the popup control on the page and links it to the {HTMLElement} as
identified in callid.
|
|
|
show(Event)
Displays the popup
|
Field Detail
<private>
_h
Hide timer id.
<private>
_i
Initial render flag.
callid
Identifier of control that calls the popup.
css
Class style sheet applied to the control.
hidedelay
Number of milliseconds to wait after the offevent has occured
before hiding the popup.
id
Identifier of the popup control.
offevent
Name of the event, or comma seperated list of event names, to deactivate upon.
offsetx
Number of pixels left from the mouse pointer that the menu is displayed.
Default = 7.
offsety
Number of pixels below from the mouse pointer that the menu is displayed.
Default = 5.
onevent
Name of the event, or comma seperated list of event names, to activate upon.
onhide
Function called or evaluated {String} whenever the popup has been made invisible (hidden).
onshow
Function called or evaluated {String} whenever the popup has been made visible.
x
Set to override the default horizontal popup position.
y
Set to override the default vertical popup position.
Method Detail
hide()
Hides the popup
- Returns:
- null
render()
Renders the popup control on the page and links it to the {HTMLElement} as
identified in callid. Initially the popup starts off in a hidden state.
- Returns:
- null
show(Event)
Displays the popup
- Parameters:
- {Event} Event
- that triggered the showing of the popup e.g. onmouseclick
- Returns:
- null
