Label

public struct Label: Html

A wrapper for the HTML ‘label’ element.

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    klass

    The CSS class names that configure this element

    id

    The CSS id name that configure this element

    forId

    The CSS id name for which this label should be used

    content

    The content for this element

  • Create a new ‘label’ element.

    Declaration

    Swift

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

    Parameters

    klass

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

    forId

    The CSS id name for which this label should be used

    content

    The content for this element

  • Create a new ‘label’ element.

    Declaration

    Swift

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

    Parameters

    klass

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

    forId

    The CSS id name for which this label should be used

    content

    The content for this element

  • Create a new ‘label’ element.

    Declaration

    Swift

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

    Parameters

    klass

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

    forId

    The CSS id name for which this label should be used

    content

    The content for this element

  • Create a new ‘label’ element.

    Declaration

    Swift

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

    Parameters

    klass

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

    forId

    The CSS id name for which this label should be used

    content

    The content for this element

  • Create a new ‘label’ element.

    Declaration

    Swift

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

    Parameters

    id

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

    forId

    The CSS id name for which this label should be used

    content

    The content for this element

  • Create a new ‘label’ element.

    Declaration

    Swift

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

    Parameters

    id

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

    forId

    The CSS id name for which this label should be used

    content

    The content for this element