The Hourglass Module is used to show or hide the hourglass (wait cursor) as well as adjust its position.
|hourglass (Module) <META> Syntax|
<META HTTP-Equiv="Hourglass" content="[parameter]">
|To set multiple EMML parameters / events on a single line use the following syntax: hourglass.setEMML("[Your EMML Tags]"); e.g. hourglass.setEMML("visibility:value");|
|Hourglass Ruby Object Syntax:|
|To Set Hourglass parameters via Ruby use the following syntax: Hourglass.parameter = 'value' remembering to enclose your value in quotes where appropriate. e.g. Hourglass.visibility = 'value'|
Items listed in this section indicate parameters, or attributes which can be set.
|Name||Possible Values||Description||Default Value|
|visibility:[Value]||Visible or Hidden||Shows or hides the hourglass||Hidden|
|left:[Value]||Horizontal position, in pixels||Sets the horizontal position of the hourglass||Center of the screen|
|top:[Value]||Vertical position, in pixels||Sets the vertical position of the hourglass||Center of the screen|
When multiple RhoElememts applications are running the following considerations should be made: The hourglass settings are application specific. Switching to another application which uses the hourglass module will apply the focused application’s settings to it, e.g. it may move position or be shown / hidden. Applications which do not have focus will not have their hourglass shown.
The hourglass is not compatible with scrolling the browser window. The spinning cursor will move with the HTML page.
|RhoElements Version||1.0.0 or above|
|Supported Devices||All supported devices.|
|Persistence||Partially Transient - any changes made by changing parameters will be lost when navigating to a new page with the exception that the wait cursor will always be hidden once the new page has loaded.|
The following example sets the Hourglass position to (50, 50).
<META HTTP-Equiv="Hourglass" Content="left:50; top:50">
The following example shows and hides the Hourglass.