Initializersliemeobn.elementary 0.2.0Elementary
init(_:)
Creates a new HTML void element with the specified attribute.
Html+Attributes.swift:96init(_ attribute: HTMLAttribute<Tag>)
Parameters
- attribute
The attribute to apply to the element.
Other members in extension
Typealiases
typealias Tag
The type of the HTML tag this element represents.
Type members
init(
) Creates a new HTML void element.
init(HTMLAttribute<Tag>...
) Creates a new HTML void element with the specified attributes.
init(attributes: [HTMLAttribute<Tag>]
) Creates a new HTML void element with the specified attributes.