Expand all

ve.ui.AuthorItemWidget

Extends

Constructor

new ve.ui.AuthorItemWidget(synchronizer, $overlay, [config]) #

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

Mixes in:
Source:
UserInterface AuthorItemWidget

Methods

focus() #

Focus the widget, if possible

Source:
Focus the widget, if possible

getName() → {string} #

Get the user's name

Source:

Returns:

User's name

Type
string
Get the user's name

setAuthorId(authorId) #

Set author ID

Parameters:

Name Type Description
authorId number

Author ID

Source:
Set author ID

update() #

Update name and color from synchronizer

Source:
Update name and color from synchronizer