Expand all

ve.dm.MWGalleryNode

Extends

Constructor

new ve.dm.MWGalleryNode([element]) #

DataModel MediaWiki gallery node.

Parameters:

Name Type Attributes Description
element Object optional

Reference to element in linear model

Mixes in:
Source:
DataModel MediaWiki gallery node.

Methods

getCaptionNode() → {ve.dm.MWImageCaptionNode|null} #

Get the gallery's caption node.

Source:

Returns:

Caption node, if present

Type
ve.dm.MWImageCaptionNode | null
Get the gallery's caption node.

getImageNodes() → {Array.<ve.dm.MWGalleryImageNode>} #

Get the gallery's image nodes.

Source:

Returns:

Gallery image nodes (may be empty if none are present)

Type
Array.<ve.dm.MWGalleryImageNode>
Get the gallery's image nodes.