Directionality
Directionality is the concept of localizing and supporting both left-to-right (LTR) and right-to-left (RTL) languages, also know as bi-directionality, or bidi. With Aesthetic, directionality is built directly into the style engine and all integrations.
#
Default directionBy default, when in a browser based environment, the primary direction will be inferred from the
document's dir
attribute. If not defined or found, the direction will default to ltr
.
#
Changing directionThe currently active direction can be changed programmatically by calling the changeDirection()
method within in your application. This will update the dir
attribute on the document.