UIListItem

open class UIListItem

A wrapper class for li (list) elements.

  • li

    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 UIListItem with the text passed in.

    Declaration

    Swift

    public init(text: String? = nil)

    Parameters

    text

    The text for instances li property.

  • Creates a UIListItem with children and no text.

    Declaration

    Swift

    public init(children: [ElementRenderable])

    Parameters

    children

    The elements that are to be the children of the li element.