Class SS.control.imagetoggle
Image Toggle. Control which toggles between two or more images when clicked on
Defined in: SS.control.imagetoggle.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
Identifier of the dropzone control.
|
|
|
Field to link the value to
|
|
|
Function called or evaluated {String} whenever the image is changed.
|
|
|
Selected value
|
|
|
Value attribute name
|
|
|
Flag to indicate whether or not the imagetoggle is currently visible.
|
| Method Attributes | Method Name and Description |
|---|---|
|
nextImage(f, q, v)
Selects and returns the next image in the sequence
|
|
|
render()
Renders the imagetoggle on the page.
|
|
|
selected(v, e)
Selects and returns the next image in the sequence
|
Field Detail
id
Identifier of the dropzone control.
linkto
Field to link the value to
onchange
Function called or evaluated {String} whenever the image is changed.
value
Selected value
van
Value attribute name
visible
Flag to indicate whether or not the imagetoggle is currently visible. Overrides style="display:none;" rule on initial render.
Default = true.
Method Detail
{HTMLElement}
nextImage(f, q, v)
Selects and returns the next image in the sequence
- Parameters:
- {Boolean} f
- Select first flag
- {Boolean} q
- Query only, do not change to next image
- {String} v
- Set image
- Returns:
- {HTMLElement} Selected image.
render()
Renders the imagetoggle on the page.
- Returns:
- null
{HTMLElement}
selected(v, e)
Selects and returns the next image in the sequence
- Parameters:
- {Boolean} v
- Set selected image. (Optional)
- {Event} e
- Event that raises the selected function. (Optional)
- Returns:
- {HTMLElement} Selected image.
