Ul

public struct Ul: Html

A wrapper for the HTML ‘ul’ element.

  • The HTML string generated for the content of this element.

    Declaration

    Swift

    public var html: String
  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(_ klass: [String], _ id: String?, _ items: [Li])

    Parameters

    klass

    The CSS class names that can be used to configure this element

    id

    The CSS id name that can be used to configure this element

    items

    The list items

  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(klass: [String] = [], _ items: [Li])

    Parameters

    klass

    (Optional) The CSS class names that can be used to configure this element

    items

    The list items

  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(klass: String, _ items: [Li])

    Parameters

    klass

    The CSS class name that can be used to configure this element

    items

    The list items

  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(klass: [String] = [], _ items: Li...)

    Parameters

    klass

    (Optional) The CSS class names that can be used to configure this element

    items

    The list items

  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(klass: String, _ items: Li...)

    Parameters

    klass

    The CSS class name that can be used to configure this element

    items

    The list items

  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(id: String, _ items: [Li])

    Parameters

    id

    The CSS id name that can be used to configure this element

    items

    The list items

  • Create a new ‘ul’ element.

    Declaration

    Swift

    public init(id: String, _ items: Li...)

    Parameters

    id

    The CSS id name that can be used to configure this element

    items

    The list items

  • Appends a list item to the end of the list.

    Declaration

    Swift

    public mutating func append(_ item: Li)

    Parameters

    item

    The list item