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
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | AddListItemCmdData |
Returns
Overrides
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
AddListItemCmdData
Data required to initialize the command.
Constructors
Constructor
new AddListItemCmdData(previousListItemIndex): AddListItemCmdData;
Parameters
| Parameter | Type |
|---|---|
previousListItemIndex | number |
Returns
Properties
previousListItemIndex
previousListItemIndex: number;
The paragraph index of the the previous list item.