Expand all

ve.ui.ContextOptionWidget

Extends

Constructor

new ve.ui.ContextOptionWidget(tool, model, [config]) #

Proxy for a tool, displaying information about the current context.

Use with ve.ui.ContextSelectWidget.

Parameters:

Name Type Attributes Description
tool function

Tool item is a proxy for

model ve.dm.Node | ve.dm.Annotation

Node or annotation item is related to

config Object optional

Configuration options

Source:
Proxy for a tool, displaying information about the current context.

Methods

getCommand() → {ve.ui.Command} #

Get the command for this item.

Source:

Returns:

Type
ve.ui.Command
Get the command for this item.

getDescription() → {string} #

Get a description of the model.

Source:

Returns:

Description of model

Type
string
Get a description of the model.