Reference - SS.control.imagetoggle - Image Toggle
Control to toggle between two or more images.
Images are nested inside the control tag.
e.g.
<div ext="imagetoggle">
<img src="dot_red.png" selected/>
<img src="dot_amber.png"/>
<img src="dot_green.png"/>
</div>
Attributes:
Functions:
Members:
Attributes
linkto
Link To Control Id
Links the value selected in the hidden field to the selected image
s - {String} - Id of the control to link to
v1.0.1.20080729
[Top]
value
Selected Value
Holds the value of the selected image. This value is determined by the attribute in the image
tag, as defined by SS.control.imagetoggle.van attribute.
s - {String}
v1.0.1.20080729
[Top]
van
Value Attribute Name
Name of the attribute which holds the unique value used to identify a specific image. Default = "id".
s - {String}
v1.0.1.20080729
[Top]
visible
Control Visible
Sets the visibility of the window. By default the control is visible. Use this in conjunction with
the style style="display:none" to hide the rendering process when
the page loads. The visible flag will override the display style when the control is rendered.
b - {Boolean} (default = true)
v1.0.1.20080729
[Top]
Functions
selected({Object} v) : {DOM Image}
Gets and / or Sets the selected image
Returns the selected image. If a value / image is specified as an input parameter into this
function, the control will attempt to set that image as the selected image. If the image cannot be matched,
no image will be displayed.
v - {String} - String representing the unique identifier of the image.
v - {DOM Image} - Image element from the list of images.
v1.0.1.20080729
[Top]