HTMLNode
public enum HTMLNode
A structure representing an HTML element with means to modify its CSS style as well as custom attributes.
-
Undocumented
Declaration
Swift
case raw(String)
-
Creates a string representation of the
HTMLNode
.Declaration
Swift
public func string() -> String
-
Returns an
HTMLNode
with an added custom HTML attribute.Declaration
Swift
public func withCustomAttribute(key: String, value newValue: String? = nil) -> HTMLNode
Parameters
key
The
String
key of the added attribute.value
The
String
value of the added attribute. -
An enumeration representing a CSS key.
See moreDeclaration
Swift
public enum CSSKey : String, CustomStringConvertible
-
An enumeration representing a CSS value.
See moreDeclaration
Swift
public enum CSSValue : Equatable