Expand all

abstract ve.ui.NodeWindow

Constructor

new ve.ui.NodeWindow([config])abstract #

Mixin for window for working with a node.

Conceptually this extends a FragmentWindow, but as this and FragmentWindow are both are mixins, we don't need to set up actual inheritance here, that is handled by the concrete classes NodeDialog & NodeInspector. T264690

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Source:
Mixin for window for working with a node.

Properties

modelClassesstatic #

Node classes compatible with this dialog.

Properties:

Type Description
function
Source:
Node classes compatible with this dialog.

Methods

getSelectedNode([data]) → {ve.dm.Node|null} #

Get the selected node.

Should only be called after setup and before teardown. If no node is selected or the selected node is incompatible, null will be returned.

Parameters:

Name Type Attributes Description
data Object optional

Window opening data

Source:

Returns:

Selected node

Type
ve.dm.Node | null
Get the selected node.

isEditing() → {boolean} #

Check if the current node is editable by this window.

Source:

Returns:

Node is editable by this window

Type
boolean
Check if the current node is editable by this window.