Skip to main content

AddListItemCmd

Classes

AddListItemCmd

The command to add a new list item to the current cursor position.

Remarks

there must be no other items of the same list between the current index and the index of the previous list item.

Extends

Implements

Constructors

Constructor
new AddListItemCmd(textManager, initData): AddListItemCmd;
Parameters
ParameterType
textManagerITextManager
initDataAddListItemCmdData
Returns

AddListItemCmd

Overrides

ListCmd.constructor

Methods

execute()
execute(): boolean;

Executes the command.

Returns

boolean

true if changes were made, false otherwise.

Implementation of

ICommand.execute


AddListItemCmdData

Data required to initialize the command.

Constructors

Constructor
new AddListItemCmdData(previousListItemIndex): AddListItemCmdData;
Parameters
ParameterType
previousListItemIndexnumber
Returns

AddListItemCmdData

Properties

previousListItemIndex
previousListItemIndex: number;

The paragraph index of the the previous list item.

Was this page helpful?