We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scope
th
1 parent 9830c5e commit 2dd3bafCopy full SHA for 2dd3baf
Sources/Elementary/HtmlAttributes.swift
@@ -656,3 +656,19 @@ public extension HTMLAttribute where Tag: HTMLTrait.Attributes.placeholder {
656
HTMLAttribute(name: "placeholder", value: value)
657
}
658
659
+
660
+// scope attribute
661
+public extension HTMLAttribute where Tag == HTMLTag.th {
662
+ struct Scope: Sendable, Equatable {
663
+ var value: String
664
665
+ public static var col: Self { .init(value: "col") }
666
+ public static var row: Self { .init(value: "row") }
667
+ public static var colgroup: Self { .init(value: "colgroup") }
668
+ public static var rowgroup: Self { .init(value: "rowgroup") }
669
+ }
670
671
+ static func scope(_ scope: Scope) -> Self {
672
+ HTMLAttribute(name: "scope", value: scope.value)
673
674
+}
0 commit comments