Li

public struct Li: Html

A wrapper for the HTML ‘li’ element.

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

    Declaration

    Swift

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

    Declaration

    Swift

    public init(_ klass: [String], _ id: String?, _ content: [Html])

    Parameters

    klass

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

    id

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

    content

    The content for this item

  • Create a new ‘li’ element.

    Declaration

    Swift

    public init (klass: [String] = [], _ content: [Html])

    Parameters

    klass

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

    content

    The content for this item

  • Create a new ‘li’ element.

    Declaration

    Swift

    public init (klass: String, _ content: [Html])

    Parameters

    klass

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

    content

    The content for this item

  • Create a new ‘li’ element.

    Declaration

    Swift

    public init (klass: [String] = [], _ content: Html...)

    Parameters

    klass

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

    content

    The content for this item

  • Create a new ‘li’ element.

    Declaration

    Swift

    public init (klass: String, _ content: Html...)

    Parameters

    klass

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

    content

    The content for this item

  • Create a new ‘li’ element.

    Declaration

    Swift

    public init (id: String, _ content: [Html])

    Parameters

    id

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

    content

    The content for this item

  • Create a new ‘li’ element.

    Declaration

    Swift

    public init (id: String, _ content: Html...)

    Parameters

    id

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

    content

    The content for this item