UIUnorderedList
open class UIUnorderedList
A wrapper class that represents an HTML ul
element.
-
The base
ul
element of theUIUnorderedList
object.Declaration
Swift
public let ul = UIElement(element: .ul)
-
The list items used in the unordered list.
Declaration
Swift
public private(set) var listItems: [UIListItem] = []
-
Creates a
UIUnorderedList
object with text in the list items.Declaration
Swift
public init(text: [String])
Parameters
text
The strings for the
UIListItems
. -
Creates a
UIUnorderedList
object with children in the list items.Declaration
Swift
public init(elements: [ElementRenderable])
Parameters
elements
The elements that will be used in the
li
elements. -
Creates a
UIUnorderedList
object with customUIListItems
.Declaration
Swift
public init(with listElements: [UIListItem])
Parameters
listElements
The
UIListItems
for theUIUnorderedList
ul.