User`s guide

12 Classes – Alphabetical List
12-340
Tag — Tag for document element
string
Tag for document element, specified as a string.
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
Use the UnorderedList.append
method similar to how you use
OrderedList.append.
Append items to this list.
clone
Use the UnorderedList.clone method
similar to how you use Paragraph.clone.
Copy the list.
Examples
Create an Unordered List
import mlreportgen.dom.*;
d = Document('mydoc');
ul = UnorderedList({Text('a'),'b',1,{'c',Paragraph('d')}});
append(d,ul);
close(d):
rptview('mydoc','html');
“Create and Format Lists”