dojo/dom-geometry::isBodyLtr()¶
Project owner: | Eugene Lazutkin |
---|---|
since: | V1.7 |
Returns true if the current language is left-to-right, and false otherwise.
Attributes¶
This function requires no arguments, and references the current document.
Examples¶
require(["dojo/dom-geometry", "dojo/dom", "dojo/on", "dojo/domReady!"],
function(domGeom, dom, on){
on(dom.byId("command"), "click", function(){
var output = domGeom.isBodyLtr();
dom.byId("output").innerHTML = output;
});
});
<button id="command" type="button">Execute isBodyLtr()</button>
<pre id="output"></pre>