Required Instance Propertysliemeobn.elementary 0.5.0Elementary
dir
The text directionality (ltr
, rtl
, auto
) of the HTML document.
var dir: HTMLAttributeValue.Direction { get }
By default this attribute is not set.
The text directionality (ltr
, rtl
, auto
) of the HTML document.
var dir: HTMLAttributeValue.Direction { get }
s10Elementary12HTMLDocumentP3dirAA18HTMLAttributeValueO9DirectionVvp
What are these?4R4OM
By default this attribute is not set.
import Elementary
protocol HTMLDocument : HTML
A type that represents a full HTML document.
enum HTMLAttributeValue
A namespace for value types used in attributes.
struct Direction
associatedtype HTMLBody : HTML
associatedtype HTMLHead : HTML
@HTMLBuilder var body: HTMLBody { get }
@HTMLBuilder var head: HTMLHead { get }
var lang: String { get }
The language of the HTML document.
var title: String { get }
The title of the HTML document.
var dir: HTMLAttributeValue.Direction { get }
The default value for the dir
property is an empty string and will not be rendered in the HTML.