Expand all

CanvasButtons

Represents the buttons which are displayed over the image - next, previous, close and fullscreen.

Constructor

new CanvasButtons($container, $closeButton, $fullscreenButton) #

Parameters:

Name Type Description
$container jQuery

The parent element we should put the buttons into.

$closeButton jQuery

The close button element from the parent class.

$fullscreenButton jQuery

The fullscreen button from the parent class.

Source:

Fires:

Methods

set(image) #

Parameters:

Name Type Description
image ImageModel
Source:

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.

unattach() #

Removes all UI things from the DOM, or hides them

Source:
Removes all UI things from the DOM, or hides them