Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mlreportgen.dom.UnorderedList class

Package: mlreportgen.dom
Superclasses:

Unordered (bulleted) list

Description

Specifies an unordered (bulleted) list.

Construction

unorderedListObj = UnorderedList() creates an empty unordered list.

unorderedListObj = UnorderedList(items) creates an unordered list of the specified list items.

Input Arguments

expand all

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:

  • A character vector

  • A number

  • A Boolean value

  • One of the following DOM objects:

    • mlreportgen.dom.Text

    • mlreportgen.dom.Paragraph

    • mlreportgen.dom.ExternalLink

    • mlreportgen.dom.InternalLink

    • mlreportgen.dom.Table

    • mlreportgen.dom.Image

    • mlreportgen.dom.CustomElement

  • Horizontal one-dimensional array (for a sublist)

To append an unordered list, use an UnorderedList DOM object instead of using the items argument.

Output Arguments

expand all

An mlreportgen.dom.UnorderedList object representing an unordered list of the specified list items.

Properties

expand all

The output format must support the custom attributes of this document element.

ID for this document element, specified as a character vector. The DOM generates a session-unique ID when it creates the document element. You can specify your own ID.

Format objects that specify the format of a document element.

The style specified by Stylename must be defined in the template used to create the document element to which you append this list.

Tag for document element, specified as a character vector.

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.

For example, to make it easier to identify where an issue occurred during document generation, you can specify your own tag value.

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

expand all

import mlreportgen.dom.*;
d = Document('mydoc');

ul = UnorderedList({Text('a'),'b',1,{'c',Paragraph('d')}});
append(d,ul);

close(d):
rptview('mydoc','html');
Was this topic helpful?