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
HTMLNodewith an added custom HTML attribute.Declaration
Swift
public func withCustomAttribute(key: String, value newValue: String? = nil) -> HTMLNodeParameters
keyThe
Stringkey of the added attribute.valueThe
Stringvalue 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
View on GitHub
HTMLNode Enumeration Reference