UL

public class UL : GenericElement

Class for Unordered list

### Usage Example: ###

  let ul = UL()
  ul.add("Unordered list item 1")
  ul.add("Unordered list item 2")
  • tag

    Override tag element for input elements. Default is ul

    Declaration

    Swift

    override var tag: String { get }
  • Override container element for table row elements defaults is true

    Declaration

    Swift

    override var container: Bool { get }
  • Initialization with Generic Type

    Declaration

    Swift

    public func add<T>(_ element: T)

    Parameters

    element

    Generic Type ElementProtocol or String

  • This method create a Text element to user when element T String is passed on add method

    Declaration

    Swift

    private func factoryTextWith(_ text: String) -> Text

    Parameters

    text

    String to create Text element

    Return Value

    Text Element with string passed