Constructor
new ImageInfo(api, [options])
#
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api |
mw.Api | |||||||||||||||||
options |
Object |
optional |
Properties:
|
Properties
iiextmetadatafilter
#
Array of imageinfo extmetadata fields which are needed to construct an Image model.
Array of imageinfo extmetadata fields which are needed to construct an Image model.
iiprop
#
Array of imageinfo API properties which are needed to construct an Image model.
Array of imageinfo API properties which are needed to construct an Image model.
Methods
get(file) → {jQuery.Promise}
#
Runs an API GET request to get the image info.
Parameters:
| Name | Type | Description |
|---|---|---|
file |
mw.Title |
Returns:
a promise which resolves to an Image object.
- Type
- jQuery.Promise
Runs an API GET request to get the image info.