mlreportgen.dom.UnorderedList Class
Namespace: mlreportgen.dom
Unordered (bulleted) list
Description
Use an object of the mlreportgen.dom.UnorderedList class to specify an unordered (bulleted) list.
The mlreportgen.dom.UnorderedList class is a handle class.
Creation
Description
Input Arguments
Content to include in an unordered list, specified as an array of doubles, an array of character vectors, a categorical array, or a one-dimensional cell array.
The cell array can contain a combination of the following:
character vector
string scalar
number
Boolean value
One of the following DOM objects:
Horizontal one-dimensional array (for a sublist)
To append an unordered list, use an UnorderedList
DOM object instead of using the items
argument.
Properties
Custom attributes of the document element, specified as an array of mlreportgen.dom.CustomAttribute objects. The custom attributes must be
supported by the output format of the document element to which this object is
appended.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Format specification for this document element object, specified as a cell array of
DOM format objects. The formats specified by this property override corresponding
formats specified by the StyleName property of this element.
Formats that do not apply to this document element object are ignored.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: cell
The style specified by Stylename must be defined in
the template used to create the document element to which you append this
list.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Tag, specified as a character vector or string scalar. The DOM API generates a
session-unique tag as part of the creation of this object. The generated tag has the
form CLASS:ID, where
CLASS is the object class and
ID is the value of the
Id property of the object. Use this value to help identify
where an issue occurs during document generation.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Object identifier, specified as a character vector or string scalar. The DOM API generates a session-unique identifier when it creates the document element object.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Methods
Method | Purpose |
|---|---|
| Append content to unordered list For more
information, see the equivalent method for the
|
clone |
Note Do not append the same object to a document more than once. Use clone to create a copy when you want to reuse the same content elsewhere in a document. Input Arguments
Return Values
For more information, see the equivalent method for the
|
Examples
import mlreportgen.dom.*; d = Document("mydoc"); ul = UnorderedList({Text("a"),"b",1,{"c",Paragraph("d")}}); append(d,ul); close(d); rptview("mydoc","html");
More About
You can append these DOM objects to an
mlreportgen.dom.UnorderedList object:
You can append an mlreportgen.dom.UnorderedList object to
these DOM class objects:
mlreportgen.dom.Endnote(since R2024a)mlreportgen.dom.Footnote(since R2024a)mlreportgen.dom.HTMLPage(since R2024a)mlreportgen.dom.TemplateDocumentPart(since R2023b)
Version History
Introduced in R2014b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)