Extends
Constructor
new ve.ui.MWGalleryItemWidget(imageInfo, [config])
#
Hierarchy
Draggable item widget for the MWGalleryGroupWidget
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
imageInfo |
Object | Image information object |
||||||||||||||||
config |
Object |
optional |
Configuration options Properties:
|
- Mixes in:
- Source:
Draggable item widget for the MWGalleryGroupWidget
Methods
onItemClick()
#
Handle clicking on an item
Fires:
Handle clicking on an item
onItemKeyPress(e) → {boolean|undefined
}
#
undefined
}
#
Handle key press events
Parameters:
Name | Type | Description |
---|---|---|
e |
jQuery.Event | Key press event |
Returns:
- Type
-
boolean
|
undefined
Fires:
Handle key press events
setAltText(altText)
#
Set the altText property
Parameters:
Name | Type | Description |
---|---|---|
altText |
string | The altText |
Set the altText property
setAltTextSame(same)
#
Set the altTextSame property
Parameters:
Name | Type | Description |
---|---|---|
same |
boolean |
Set the altTextSame property
setCaptionDocument(captionDocument)
#
Set the captionDocument property
Parameters:
Name | Type | Description |
---|---|---|
captionDocument |
ve.dm.Document | The caption document |
Set the captionDocument property
toggleHighlighted(highlighted)
#
Toggle highlighted class
Parameters:
Name | Type | Description |
---|---|---|
highlighted |
boolean | The item is highlighted |
Toggle highlighted class