Create a new instance of VList class
The root list element, can be either OL or UL tag
Append a new item to this VList
node of the item to append. If it is not wrapped with LI tag, it will be wrapped
Type of this list item, can be ListType.None
Change list type of the given range of this list. If some of the items are not real list item yet, this will make them to be list item with given type If all items in the given range are already in the type to change to, this becomes an outdent operation
Start position to operate from
End position to operate to
Target list type
Check if this list contains the given node
The node to check
Get list number of the last item in this VList. If there is no order list item, result will be undefined
Get the index of the List Item in the current List If the root list is: Ordered list, the listIndex start count is going to be the start property of the OL - 1,
Get the Start property of the root list of this VList
Start number of the list
Merge the given VList into current VList.
The vList to merge from
Remove margins of a new list
Set alignment of the given range of this list
Start position to operate from
End position to operate to
Align items left, center or right
Set indentation of the given range of this list
Start position to operate from
End position to operate to
Indent or outdent
Outdent the give range of this list
Start position to operate from
End position to operate to
Specify to outdent
(Optional) True to make the item to by dummy (no bullet or number) if the item is not dummy, otherwise outdent the item
(Optional) True to prevent the indentation to remove the bullet when outdenting a first level list item, by default is false
Change list style of the given range of this list. If some of the items are not real list item yet, this will make them to be list item with given style
The style of ordered list
The style of unordered list
Sets the New List Start Property, that is going to be used to create a new List in the WriteBack function
The HTML element that indicates when to split the VList
The start number of the new List
Write the result back into DOM tree After that, this VList becomes unavailable because we set this.rootList to null
Optional - defaults to false.
Whether we want to disable list chain functionality. @default false
Generated using TypeDoc
Represent a bullet or a numbering list
A VList is a logical representation of list items, it contains an item array with node and list type stack. e.g. We have a list like this
A VList of this list will be like this:
When we want to outdent item 2.1, we just need to remove the last "UL" from listTypes of item 2.1, then the writeBack() function will handle everything related to DOM change