UIOrderedList
open class UIOrderedList
A wrapper class around an ol
(odered list) element.
-
The
ol
element that is represented by this class.Declaration
Swift
public let ol = UIElement(element: .ol)
-
The list items used in the ordered list.
Declaration
Swift
public private(set) var listItems: [UIListItem] = []
-
Creates a
UIOrderedList
with text in the list items.Declaration
Swift
public init(text: [String])
Parameters
text
The strings for the
UIListItems
. -
Creates a
UIOrderedList
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
UIOrderedList
with customUIListItems
.Declaration
Swift
public init(with listElements: [UIListItem])
Parameters
listElements
The
UIListItems
for theUIOrderedList
ol.