Thead

public struct Thead: Html

A wrapper for the HTML ‘thead’ element.

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    klass

    The CSS class names that configure this element

    id

    The CSS id name that configure this element

    content

    The content for this element

  • Create a new ‘thead’ element.

    Declaration

    Swift

    public init(klass: [String] = [], titles: [String])

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    titles

    The column header names

  • Create a new ‘thead’ element.

    Declaration

    Swift

    public init(klass: [String] = [], titles: String...)

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    titles

    The column header names

  • Create a new ‘thead’ element.

    Declaration

    Swift

    public init(klass: String, titles: String...)

    Parameters

    klass

    The CSS class name that configures this element

    titles

    The column header names

  • Create a new ‘thead’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    content

    The column header row(s)

  • Create a new ‘thead’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    content

    The column header row(s)

  • Create a new ‘thead’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    content

    The column header row(s)

  • Create a new ‘thead’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    content

    The column header row(s)

  • Create a new ‘thead’ element.

    Declaration

    Swift

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

    Parameters

    id

    The CSS class name that configures this element

    content

    The column header row(s)

  • Create a new ‘thead’ element.

    Declaration

    Swift

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

    Parameters

    id

    The CSS class name that configures this element

    content

    The column header row(s)

  • Create a new ‘thead’ element.

    Declaration

    Swift

    public init()