isDirectionRTL (XSPContext - JavaScript)

Checks if the base direction of text is right to left.

Defined in

XSPContext (JavaScript)

Syntax

isDirectionRTL() : boolean
Return value Description
boolean true if the base direction of text in the context is right to left; false if it is left to right.

Usage

Left to right means all text displays in that direction. Right to left means the text display is bidirectional.

Examples

This computed field displays the base direction of the base on the page.
if(context.isDirectionRTL()) {
	return "Reading order is right to left"
} else {
	return "Reading order is left to right"
}