Expand all

ve.ui.MWCategoryPopupWidget

Extends

Constructor

new ve.ui.MWCategoryPopupWidget([config]) #

Creates an ve.ui.MWCategoryPopupWidget object.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Source:
Creates an ve.ui.MWCategoryPopupWidget object.

Methods

closePopup() #

Close the popup.

loadCategoryIntoPopup(item) #

Load item information into the popup.

Parameters:

Name Type Description
item ve.ui.MWCategoryItemWidget

Category item

Source:
Load item information into the popup.

onRemoveCategory() #

Handle category remove events.

onSortKeySubmit(e) → {boolean} #

Handle sort key form submit events.

Parameters:

Name Type Description
e jQuery.Event

Form submit event

Source:

Returns:

Type
boolean

Fires:

Handle sort key form submit events.

onToggle(show) #

Handle popup toggle events.

Parameters:

Name Type Description
show boolean

Widget is being made visible

Source:

Fires:

Handle popup toggle events.

openPopup(item) #

Open a category item popup.

Parameters:

Name Type Description
item ve.ui.MWCategoryItemWidget

Category item

Source:
Open a category item popup.

setDefaultSortKey(value) #

Set the default sort key.

Parameters:

Name Type Description
value string

Default sort key value

Source:
Set the default sort key.

setPopup(item) #

Display the popup next to an item.

Parameters:

Name Type Description
item ve.ui.MWCategoryItemWidget

Category item

Source:
Display the popup next to an item.

Events

removeCategory(category) #

Parameters:

Name Type Description
category string

Category name

Source:

updateSortkey(category, sortkey) #

Parameters:

Name Type Description
category string

Category name

sortkey string

New sortkey

Source: