Td

public struct Td: Html

A wrapper for the HTML ‘td’ element.

  • The value for the colspan attribute. The colspan attribute is only included when a value has been assigned.

    Declaration

    Swift

    public var colspan: Int?
  • The HTML string generated for the content of this element.

    Declaration

    Swift

    public var html: String
  • Create a new ‘td’ 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 ‘td’ element.

    Declaration

    Swift

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

    Parameters

    klass

    The CSS class name that configures this element

    content

    The content for this element

  • Create a new ‘td’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    content

    The content for this element

  • Create a new ‘td’ element.

    Declaration

    Swift

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

    Parameters

    klass

    The CSS class name that configures this element

    content

    The content for this element

  • Create a new ‘td’ element.

    Declaration

    Swift

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

    Parameters

    klass

    (Optional) The CSS class names that configure this element

    content

    The content for this element

  • Create a new ‘td’ element.

    Declaration

    Swift

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

    Parameters

    id

    The CSS id name that configures this element

    content

    The content for this element

  • Create a new ‘td’ element.

    Declaration

    Swift

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

    Parameters

    id

    The CSS id name that configures this element

    content

    The content for this element