Constructor
new LightboxImage(fileLink, fileTitle, index, position, thumb, [caption])
#
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
fileLink |
string | Link to the file - generally a thumb URL |
|
fileTitle |
mw.Title | Represents the File: page |
|
index |
number | Which number file this is |
|
position |
number | The relative position of this image to others with same file |
|
thumb |
HTMLImageElement | The thumbnail that represents this image on the page |
|
caption |
string |
optional |
The caption, if any. |
Properties
alt
#
Properties:
Name | Type | Description |
---|---|---|
The |
string | alt text of the image |
filePageTitle
#
Properties:
Name | Type | Description |
---|---|---|
filePageTitle |
mw.Title | Title of the image's file page |
index
#
Properties:
Name | Type | Description |
---|---|---|
index |
number | What number this image is in the array of indexed images |
originalHeight
#
Properties:
Name | Type | Description |
---|---|---|
originalHeight |
number | Height of the full-sized file (read from HTML data attribute, might be missing) |
originalWidth
#
Properties:
Name | Type | Description |
---|---|---|
originalWidth |
number | of the full-sized file (read from HTML data attribute, might be missing) |
position
#
Properties:
Name | Type | Description |
---|---|---|
position |
number | The relative position of this image to others with same file |
src
#
Properties:
Name | Type | Description |
---|---|---|
Link |
string | to the file - generally a thumb URL |
thumbnail
#
Properties:
Name | Type | Description |
---|---|---|
thumbnail |
HTMLImageElement | The element that holds the already-loaded thumbnail of the image |