getDirection()

Parameters:

None

Usage:

// when the editor wants to handle and support
// directionality
let dir = sdk.getDirection();
if(dir){   
document.querySelector("html").setAttribute("dir", dir);
}

Returns:

The current direction of the user interface.