Extends
Constructor
new ve.ui.IndentationAction(surface, [source])
#
Hierarchy
Indentation action.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
surface |
ve.ui.Surface | Surface to act on |
|
source |
string |
optional |
Indentation action.
Methods
changeIndentation(indent) → {boolean}
#
Change indentation of content.
Parameters:
Name | Type | Description |
---|---|---|
indent |
number | Indentation change, 1 or -1 |
Returns:
Indentation decrease occurred
- Type
- boolean
Change indentation of content.
decrease() → {boolean}
#
Unindent content.
Returns:
Indentation decrease occurred
- Type
- boolean
Unindent content.
increase() → {boolean}
#
Indent content.
Returns:
Indentation increase occurred
- Type
- boolean
Indent content.
indentListItem(listItem)
#
Indent a list item.
Parameters:
Name | Type | Description |
---|---|---|
listItem |
ve.dm.ListItemNode | List item to indent |
Throws:
Indent a list item.
unindentListItem(listItem)
#
Unindent a list item.
TODO: Refactor functionality into {ve.dm
.SurfaceFragment}.
Parameters:
Name | Type | Description |
---|---|---|
listItem |
ve.dm.ListItemNode | List item to unindent |
Throws:
Unindent a list item.