Extends
Constructor
new ve.ui.AuthorListPopupTool(toolGroup, [config])
#
Hierarchy
UserInterface AuthorListPopupTool
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
toolGroup |
OO.ui.ToolGroup | ||
config |
Object |
optional |
UserInterface AuthorListPopupTool
Methods
changeName()
#
Notify the server of a name change
Notify the server of a name change
onPopupToggle()
#
onSelfItemChange(value)
#
Handle change events from the user's authorItem
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Handle change events from the user's authorItem
onSelfItemChangeColor(color)
#
Handle change color events from the user's authorItem
Parameters:
Name | Type | Description |
---|---|---|
color |
string |
Handle change color events from the user's authorItem
onSurfaceChange(oldSurface, newSurface)
#
Handle surfaceChange event fromt the toolbar
Parameters:
Name | Type | Description |
---|---|---|
oldSurface |
ve.dm.Surface
|
null
|
Old surface |
newSurface |
ve.dm.Surface
|
null
|
New surface |
Handle surfaceChange event fromt the toolbar
onSynchronizerAuthorDisconnect(authorId)
#
Called when the synchronizer receives a remote author disconnect
Parameters:
Name | Type | Description |
---|---|---|
authorId |
number | The author ID |
Called when the synchronizer receives a remote author disconnect
onSynchronizerAuthorUpdate(authorId)
#
Called when the synchronizer receives a remote author selection or name change
Parameters:
Name | Type | Description |
---|---|---|
authorId |
number | The author ID |
Called when the synchronizer receives a remote author selection or name change
setup(surface)
#
Setup the popup which a specific surface
updateAuthorCount()
#
Update the user count
Update the user count