Tbody

public struct Tbody: Html

A wrapper for the HTML ‘tbody’ element.

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

    Declaration

    Swift

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

    Declaration

    Swift

    public init(_ klass: [String], _ id: String?, _ rows: [Tr])

    Parameters

    klass

    The CSS class names that configure this element

    id

    The CSS id name that configure this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

    public init(klass: String, rows: [Tr])

    Parameters

    klass

    The CSS class name that configures this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

    public init(klass: String, rows: Tr...)

    Parameters

    klass

    The CSS class name that configures this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

    public init(id: String, rows: [Tr])

    Parameters

    id

    The CSS id name that configures this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

    public init(id: String, rows: Tr...)

    Parameters

    id

    The CSS id name that configures this element

    rows

    The rows for this element

  • Create a new ‘tbody’ element.

    Declaration

    Swift

    public init()
  • Appends the given table row(s) to the already present rows (i.e. after)

    Declaration

    Swift

    public mutating func append(_ rows: [Tr])

    Parameters

    rows

    The row(s) to be added

  • Appends the given table row(s) to the already present rows (i.e. after)

    Declaration

    Swift

    public mutating func append(_ rows: Tr...)

    Parameters

    rows

    The row(s) to be added

  • Appends the given cells as a row to the already present rows (i.e. after)

    Declaration

    Swift

    public mutating func appendRow(_ cells: [Td])

    Parameters

    cells

    The cells to be added

  • Appends the given cells as a row to the already present rows (i.e. after)

    Declaration

    Swift

    public mutating func appendRow(_ cells: Td...)

    Parameters

    cells

    The cells to be added