Expand all

abstract ve.ui.TableLineContextItem

Extends

Constructor

new ve.ui.TableLineContextItem(context, model, tool, [config])abstract #

Context item for a table line (row or column) toolset.

Parameters:

Name Type Attributes Description
context ve.ui.TableLineContext

Context the item is in

model ve.dm.Model

Model the item is related to

tool function

Tool class the item is based on

config Object optional

Configuration options

Source:
Context item for a table line (row or column) toolset.

Properties

titlestatic #

Title to use for context item action

Properties:

Type Description
string
Source:
Title to use for context item action

Methods

equals(other) → {boolean} #

Check whether this context item represents the same content as another

Parameters:

Name Type Description
other ve.ui.ContextItem

Returns:

Type
boolean
Inherited from:
Source:
Check whether this context item represents the same content as another

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

Get the command for this item.

Returns:

Type
ve.ui.Command
Inherited from:
Source:
Get the command for this item.

getFragment() → {ve.dm.SurfaceFragment} #

Get a surface fragment covering the related model node, or the current selection otherwise

Returns:

Surface fragment

Type
ve.dm.SurfaceFragment
Inherited from:
Source:
Get a surface fragment covering the related model node, or the current selection otherwise

getTitle() → {jQuery|string|OO.ui.HtmlSnippet|function} #

Get the title of the tool, used by the button label

Returns:

Tool title

Type
jQuery | string | OO.ui.HtmlSnippet | function
Source:
Get the title of the tool, used by the button label

isNode() → {boolean} #

Check if model is a node

Returns:

Model is a node

Type
boolean
Inherited from:
Source:
Check if model is a node

isReadOnly() → {boolean} #

Check if the context's surface is readOnly

Returns:

Context's surface is readOnly

Type
boolean
Inherited from:
Source:
Check if the context's surface is readOnly

onActionButtonClick()protected #

Handle action button click events.

setup(refreshing) → {ve.ui.ContextItem}chainable #

Setup the item.

Parameters:

Name Type Description
refreshing boolean

If this is a reconstruction/refresh of a context

Returns:

Type
ve.ui.ContextItem
Overrides:
Source:
Setup the item.

teardown() → {ve.ui.ContextItem}chainable #

Teardown the item.

Returns:

Type
ve.ui.ContextItem
Inherited from:
Source:
Teardown the item.

Events

command() #

The context executed a ve.ui.Command

Inherited from:
Source:
The context executed a ve.ui.Command