User`s guide

12 Classes – Alphabetical List
12-224
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Methods
Method Purpose
append Append items to this list.
clone
Use the OrderedList.clone method
similar to how you use Paragraph.clone.
Copy the list.
Examples
Create an Ordered List
import mlreportgen.dom.*;
d = Document('test','html');
ol = OrderedList({Text('a'), 'b', 1,...
{'c', Paragraph('d')}});
append(d,ol);
close(d);
rptview('test','html');
“Create and Format Lists”
See Also
mlreportgen.dom.ListItem | mlreportgen.dom.UnorderedList