IframeStep Class
The IframeStep provides a widget for browsing among iframes.
Constructor
IframeStep
(
-
config
Parameters:
-
config
ObjectConfiguration options for the widget
Item Index
Methods
_afterOffsetChange
(
private
-
e
Handles offsetChange event. It deals with CSS classes on boundingBox.
Parameters:
-
e
Y.EventEvent instance.
_uiSetOffset
(
private
-
offset
Updates UI according to provided offset.
Parameters:
-
offset
NumberThe frame offset.
_validateOffset
()
Boolean
private
Validates if the provided offset is valid.
Returns:
Boolean:
false if it's illegal.
bindUI
()
protected
Binds button interaction.
move
(
public
-
offset
Switches to specific item.
Parameters:
-
offset
Boolean | Numbertrue if it switches to next iframe. false if it switches to previous iframe. You can also provide a number of offset to show a specific frame.
next
()
public
Moves to next item.
prev
()
public
Moves to previous item.
renderUI
()
protected
Creates the DOM structure for the IframeStep.
syncUI
()
protected
Synchronizes the DOM state with the attribute settings.