Extends
Constructor
new ve.ui.AuthorItemWidget(synchronizer, $overlay, [config])
#
Hierarchy
UserInterface AuthorItemWidget
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
synchronizer |
ve.dm.SurfaceSynchronizer | Surface synchronizer |
|
$overlay |
jQuery | Overlay in which to attach popups (e.g. color picker) |
|
config |
Object |
optional |
Configuration options |
UserInterface AuthorItemWidget
Methods
focus()
#
Focus the widget, if possible
Focus the widget, if possible
getName() → {string}
#
Get the user's name
Returns:
User's name
- Type
- string
Get the user's name
setAuthorId(authorId)
#
Set author ID
Parameters:
Name | Type | Description |
---|---|---|
authorId |
number | Author ID |
Set author ID
update()
#
Update name and color from synchronizer
Update name and color from synchronizer