Expand all

ve.ui.MWGalleryItemWidget

Extends

Constructor

new ve.ui.MWGalleryItemWidget(imageInfo, [config]) #

Draggable item widget for the MWGalleryGroupWidget

Parameters:

Name Type Attributes Description
imageInfo Object

Image information object

config Object optional

Configuration options

Properties:
Name Type Attributes Default Description
isMobile boolean optional
false
draggable boolean optional
true
Mixes in:
Source:
Draggable item widget for the MWGalleryGroupWidget

Methods

onItemClick() #

Handle clicking on an item

onItemKeyPress(e) → {boolean|undefined} #

Handle key press events

Parameters:

Name Type Description
e jQuery.Event

Key press event

Source:

Returns:

Type
boolean | undefined

Fires:

Handle key press events

setAltText(altText) #

Set the altText property

Parameters:

Name Type Description
altText string

The altText

Source:
Set the altText property

setAltTextSame(same) #

Set the altTextSame property

Parameters:

Name Type Description
same boolean
Source:
Set the altTextSame property

setCaptionDocument(captionDocument) #

Set the captionDocument property

Parameters:

Name Type Description
captionDocument ve.dm.Document

The caption document

Source:
Set the captionDocument property

toggleHighlighted(highlighted) #

Toggle highlighted class

Parameters:

Name Type Description
highlighted boolean

The item is highlighted

Source:
Toggle highlighted class

Events