Expand all

ve.ui.MergeCellsCommand

Extends

Constructor

new ve.ui.MergeCellsCommand() #

UserInterface merge cells command.

Source:
UserInterface merge cells command.

Methods

execute(surface, [args], [source]) → {boolean} #

Execute command on a surface.

Parameters:

Name Type Attributes Description
surface ve.ui.Surface

Surface to execute command on

args Array optional

Custom arguments to override defaults

source string optional

Label for the source of the command. One of 'trigger', 'sequence', 'tool', or 'context'

Returns:

Command was executed

Type
boolean
Inherited from:
Source:
Execute command on a surface.

getAction() → {string} #

Get command action.

Returns:

action Action to execute when command is triggered

Type
string
Inherited from:
Source:
Get command action.

getArgs() → {Array} #

Get command arguments.

Returns:

args Additional arguments to pass to the action when executing

Type
Array
Inherited from:
Source:
Get command arguments.

getMethod() → {string} #

Get command method.

Returns:

method Method to call on action when executing

Type
string
Inherited from:
Source:
Get command method.

getName() → {string} #

Get command name.

Returns:

name The symbolic name of the command.

Type
string
Inherited from:
Source:
Get command name.

isExecutable(fragment) → {boolean} #

Check if this command is executable on a given surface fragment

Parameters:

Name Type Description
fragment ve.dm.SurfaceFragment

Surface fragment

Returns:

The command can execute on this fragment

Type
boolean
Overrides:
Source:
Check if this command is executable on a given surface fragment