Expand all

ve.ui.MWLanguagesPage

Extends

Constructor

new ve.ui.MWLanguagesPage(name, [config]) #

MediaWiki meta dialog Languages page.

Parameters:

Name Type Attributes Description
name string

Unique symbolic name of page

config Object optional

Configuration options

Properties:
Name Type Attributes Description
$overlay jQuery optional

Overlay to render dropdowns in

Source:
MediaWiki meta dialog Languages page.

Methods

getAllLanguageItems() → {jQuery.Promise} #

Get array of language items from meta list

Source:

Returns:

Type
jQuery.Promise
Get array of language items from meta list

getLanguageItemFromMetaListItem(metaItem) → {Object} #

Gets language item from meta list item

Parameters:

Name Type Description
metaItem ve.dm.MWLanguageMetaItem
Source:

Returns:

item

Type
Object
Gets language item from meta list item

getLocalLanguageItems() → {Array.<Object>} #

Get array of language items from meta list

Source:

Returns:

items

Type
Array.<Object>
Get array of language items from meta list

onAllLanguageItemsError() #

Handle language items failing to be loaded.

TODO: This error function should probably not be empty.

Source:
Handle language items failing to be loaded.

onAllLanguageItemsSuccess(deferred, response) #

Handle language items being loaded.

Parameters:

Name Type Description
deferred jQuery.Deferred

Deferred to resolve with language data

response Object

API response

Source:
Handle language items being loaded.

setupOutlineItem() #