Constructor
new CanvasButtons($container, $closeButton, $fullscreenButton)
#
Methods
attach()
#
Registers listeners.
- Source:
Fires:
Registers listeners.
set(image)
#
setOffset(offset)
#
Sets the top offset for the navigation buttons.
Parameters:
Name | Type | Description |
---|---|---|
offset |
number |
- Source:
Sets the top offset for the navigation buttons.
toggle(showPrevButton, showNextButton)
#
Toggles buttons being disabled or not
Parameters:
Name | Type | Description |
---|---|---|
showPrevButton |
boolean | |
showNextButton |
boolean |
- Source:
Toggles buttons being disabled or not
unattach()
#
Removes all UI things from the DOM, or hides them
- Source:
Removes all UI things from the DOM, or hides them