Constructor
new mw.editcheck.EditCheckGutterSectionWidget(config)
#
EditCheckGutterSectionWidget
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | Configuration options Properties:
|
EditCheckGutterSectionWidget
Methods
getPrimaryAction() → {mw.editcheck.EditCheckAction}
#
Get the primary action for this section (the focused one, or the first one)
Returns:
Get the primary action for this section (the focused one, or the first one)
isFocused() → {boolean}
#
Check if any of the actions in this section are focused
Returns:
- Type
- boolean
Check if any of the actions in this section are focused
onClick()
#
Handle click events
Handle click events
setPosition(rect)
#
Set the position of the gutter section
Parameters:
Set the position of the gutter section
showDialogWithAction(action, [alignToTop])
#
Show the edit check dialog with this widget's actions and with a specific action focused
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
action |
mw.editcheck.EditCheckAction | Action to focus |
|
alignToTop |
boolean |
optional |
Align the selection to the top of the viewport |
Show the edit check dialog with this widget's actions and with a specific action focused
teardown()
#
Teardown the widget
Teardown the widget
update()
#
Update the rendering of the gutter section
Update the rendering of the gutter section