Home Reference Source Test Repository
public class | source

ImageGalleryComponent

Extends:

src/core/bane~Component → ImageGalleryComponent

A component for creating an Image Gallery

Member Summary

Public Members
public

$images: *

public get

$pswp: jQuery: *

Render the gallery viewer

public

events: *

public

Method Summary

Public Methods
public

initialize(objectPattern: {"galleryImageSelector": *})

public

Callback from photoswipe item change

public

Callback from photoswipe item change

public

Callback from clicking on a gallery image

public

Callback from photoswipe gallery close

public

Callback from photoswipe gallery close

public

openPhotoSwipe(index: [type]): [type]

Open the photo gallery

Public Members

public $images: * source

public get $pswp: jQuery: * source

Render the gallery viewer

Return:

jQuery

Returns the gallery element

public events: * source

public template: * source

Public Methods

public initialize(objectPattern: {"galleryImageSelector": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"galleryImageSelector": *}
  • optional
  • default: {}

public onGalleryChange() source

Callback from photoswipe item change

public onGalleryChange() source

Callback from photoswipe item change

public onGalleryClick(event: Event): Object source

Callback from clicking on a gallery image

Params:

NameTypeAttributeDescription
event Event

Event

Return:

Object

Returns an object to send data to GA for tracking

public onGalleryClose() source

Callback from photoswipe gallery close

public onGalleryClose() source

Callback from photoswipe gallery close

public openPhotoSwipe(index: [type]): [type] source

Open the photo gallery

Params:

NameTypeAttributeDescription
index [type]

[description]

Return:

[type]

[description]