Extends
Constructor
new ve.ui.MWCategoriesPage(name, [config])
#
MediaWiki meta dialog categories page.
Methods
focus()
#
getCategoryItemForInsertion(item, [oldData]) → {Object}
#
Get metaList like object to insert from item
getCategoryItemFromMetaListItem(metaItem) → {Object}
#
Gets category item from meta list item
Parameters:
Name | Type | Description |
---|---|---|
metaItem |
ve.dm.MWCategoryMetaItem |
Returns:
item
- Type
- Object
Gets category item from meta list item
Get array of category items from meta list
getDefaultSortKeyItem() → {Object}
#
Get default sort key item.
onDefaultSortChange(value)
#
Handle category default sort change events.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | Default sort value |
Handle category default sort change events.
onMetaListInsert(metaItem)
#
Bound to MetaList insert event for adding meta dialog components.
Parameters:
Name | Type | Description |
---|---|---|
metaItem |
ve.dm.MetaItem |
Bound to MetaList insert event for adding meta dialog components.
onMetaListRemove(metaItem)
#
Bound to MetaList insert event for removing meta dialog components.
Parameters:
Name | Type | Description |
---|---|---|
metaItem |
ve.dm.MetaItem |
Bound to MetaList insert event for removing meta dialog components.
onNewCategory(item, [beforeMetaItem])
#
Inserts new category into meta list
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
item |
Object | ||
beforeMetaItem |
ve.dm.MWCategoryMetaItem |
optional |
Meta item to insert before, or undefined to go at the end |
Inserts new category into meta list
onUpdateSortKey(item)
#
Removes and re-inserts updated category widget item
setup(fragment, config) → {jQuery.Promise}
#
Setup categories page.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fragment |
ve.dm.SurfaceFragment | Surface fragment |
|||||||||||||||
config |
Object |
Properties:
|
Returns:
- Type
- jQuery.Promise
Setup categories page.