Skip to main content

UList

You can use the UList element to display a list of items.

Syntax

let elements = [
{
type: "ulist"
}
];

Rendered Element

The instance of UList class will be created.

new UList()
.set({})
.add([
"First",
"Second",
"Third"
])

You can also supply your own elements:

new UList()
.set({})
.add([
new Text("First").set({color: "green"}),
new Text("Second").set({color: "green"})
new Text("Third").set({color: "green"})
])