UIUnorderedList

open class UIUnorderedList

A wrapper class that represents an HTML ul element.

  • ul

    The base ul element of the UIUnorderedList 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 custom UIListItems.

    Declaration

    Swift

    public init(with listElements: [UIListItem])

    Parameters

    listElements

    The UIListItems for the UIUnorderedList ul.