Spiderscript Home
Class Index | File Index

Classes




Spiderscript Home
Class Index | File Index

Classes




Class SS.control.popup

Popup. Makes an element popup on a given event.
Defined in: SS.control.popup.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<private>  
_h
Hide timer id.
<private>  
_i
Initial render flag.
 
Identifier of control that calls the popup.
 
css
Class style sheet applied to the control.
 
Number of milliseconds to wait after the offevent has occured before hiding the popup.
 
id
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.
 
x
Set to override the default horizontal popup position.
 
y
Set to override the default vertical popup position.
Method Summary
Method Attributes Method Name and Description
 
hide()
Hides the popup
 
Renders the popup control on the page and links it to the {HTMLElement} as identified in callid.
 
show(Event)
Displays the popup
Class Detail
SS.control.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

Documentation generated by JsDoc Toolkit 2.1.0 on Wed Sep 30 2009 09:31:10 GMT+0100 (BST)