UIListItem
open class UIListItem
A wrapper class for li (list) elements.
-
The base list element of the class
Declaration
Swift
public let li = UIElement(element: .li) -
The child elements of the li.
Declaration
Swift
public var children: [ElementRenderable] = [] -
The text for the list element.
Declaration
Swift
public let text: String? -
Creates a
UIListItemwith the text passed in.Declaration
Swift
public init(text: String? = nil)Parameters
textThe text for instances
liproperty. -
Creates a
UIListItemwith children and no text.Declaration
Swift
public init(children: [ElementRenderable])Parameters
childrenThe elements that are to be the children of the
lielement.
UIListItem Class Reference