Static Propertysliemeobn.elementary 0.5.0Elementary
popover
HtmlAttributes.swift:46static var popover: Self { get }
static var popover: Self { get }
s10Elementary13HTMLAttributeVA2A9HTMLTraitO10AttributesO6GlobalRzrlE7popoverACyxGvpZ
What are these?8U0C
where Tag:HTMLTagDefinition, Tag:HTMLTrait.Attributes.Global
import Elementary
struct HTMLAttribute<Tag> where Tag : HTMLTagDefinition
An HTML attribute that can be applied to an HTML element of the associated tag.
protocol HTMLTagDefinition : Sendable
A type that represents an HTML tag.
protocol Global
A marker that indicates that an HTML tag can have global attributes.
static var autofocus: Self { get }
static var hidden: Self { get }
static var inert: Self { get }
static func `class`(_ value: String) -> HTMLAttribute<Tag>
static func contenteditable(_ value: HTMLAttributeValue.ContentEditable) -> HTMLAttribute<Tag>
static func custom(name: String, value: String) -> HTMLAttribute<Tag>
static func data(_ key: String, value: String) -> HTMLAttribute<Tag>
static func dir(_ value: HTMLAttributeValue.Direction) -> HTMLAttribute<Tag>
static func draggable(_ value: HTMLAttributeValue.Draggable) -> HTMLAttribute<Tag>
static func id(_ value: String) -> HTMLAttribute<Tag>
static func `is`(_ value: String) -> HTMLAttribute<Tag>
static func lang(_ value: String) -> HTMLAttribute<Tag>
static func on(_ event: HTMLAttributeValue.MouseEvent, _ script: String) -> HTMLAttribute<Tag>
static func on(_ event: HTMLAttributeValue.KeyboardEvent, _ script: String) -> HTMLAttribute<Tag>
static func on(_ event: HTMLAttributeValue.FormEvent, _ script: String) -> HTMLAttribute<Tag>
static func popover(_ popover: HTMLAttributeValue.Popover) -> HTMLAttribute<Tag>
static func role(_ role: HTMLAttributeValue.Role) -> HTMLAttribute<Tag>
static func slot(_ value: String) -> HTMLAttribute<Tag>
static func style(_ value: String) -> HTMLAttribute<Tag>
static func tabindex(_ index: Int) -> HTMLAttribute<Tag>
static func title(_ value: String) -> HTMLAttribute<Tag>