Package: mlreportgen.dom
Superclasses:
Create item for ordered or unordered list
Specifies an item in an ordered (numbered) or unordered (bulleted) list.
creates
an empty list item. listItemObj
= ListItem()
creates a list item using the specified text. The constructor creates a text
object and appends the text object to the list item. In Microsoft® Word and PDF output, text in a list item is wrapped in a paragraph
because Word and PDF do not permit unwrapped text in list items. In HTML output,
the text is not wrapped in a paragraph.listItemObj
= ListItem(text
)
creates
a list item using the specified text and applies the specified style.listItemObj
= ListItem(text
,styleName
)
creates
a list item and appends the specified document element object to
the list item.listItemObj
= ListItem(domObj
)
creates
a list item using the specified document element object and style
name. listItemObj
= ListItem(domObj
,styleName
)
Method | Purpose |
---|---|
Use | Append a character vector or any of these kinds of DOM objects to a list item:
|
Use | Clone a list item. |
Depending on how you create a multilevel list, a sublist can be a child of the parent list or a child of the preceding list item in the parent list. If the sublist is child of a list item in the parent list, the sublist inherits the formatting from the list item. If the sublist is a child of the parent list, the sublist does not inherit the formatting from the previous list item. See Format a List Item in a Multilevel List.