Structuresliemeobn.elementary 0.3.0Elementary
HTMLAttribute
An HTML attribute that can be applied to an HTML element of the associated tag.
Html+Attributes.swift:2struct HTMLAttribute<Tag> where Tag : HTMLTagDefinition
Citizens in Elementary
Conformances
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Instance members
var name: String
The name of the attribute.
var value: String?
The value of the attribute.
Citizens in Elementary
where Tag:HTMLTagDefinition
Type members
init(name: String, value: String?, mergedBy: HTMLAttributeMergeAction
) Creates a new HTML attribute with the specified name and value.
Instance members
func mergedBy(HTMLAttributeMergeAction
) -> HTMLAttribute Changes the default merge action of this attribute.
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.crossorigin
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.autocomplete
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.rel
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.src
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.form
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.href
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.name
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.label
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.Global
Type members
static func `class`(String
) -> HTMLAttribute<Tag> static func custom(name: String, value: String
) -> HTMLAttribute<Tag> static func data(String, value: String
) -> HTMLAttribute<Tag> static func id(String
) -> HTMLAttribute<Tag> static func lang(String
) -> HTMLAttribute<Tag> static func on(HTMLAttributeValue.MouseEvent, String
) -> HTMLAttribute<Tag> static func on(HTMLAttributeValue.KeyboardEvent, String
) -> HTMLAttribute<Tag> static func on(HTMLAttributeValue.FormEvent, String
) -> HTMLAttribute<Tag> static func style(String
) -> HTMLAttribute<Tag> static func tabindex(Int
) -> HTMLAttribute<Tag> static func title(String
) -> HTMLAttribute<Tag>
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.target
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.charset
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.disabled
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.required
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.autofocus
Type members
Citizens in Elementary
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.integrity
Type members
Citizens in Elementary
where Tag == HTMLTag.form
Types
Type members
Citizens in Elementary
where Tag == HTMLTag.meta
Types
Type members
Citizens in Elementary
where Tag == HTMLTag.input
Types
Type members
Citizens in Elementary
where Tag == HTMLTag.label
Type members
Citizens in Elementary
where Tag == HTMLTag.option
Type members
Citizens in Elementary
where Tag == HTMLTag.script