MCPcopy Create free account
hub / github.com/microsoft/SandDance / setRTL

Function setRTL

docs/app/js/sanddance-app.js:21931–21933  ·  view source on GitHub ↗
(isRTL)

Source from the content-addressed store, hash-verified

21929 */ parcelHelpers.export(exports, "getRTL", ()=>getRTL);
21930parcelHelpers.export(exports, "getStyleOptions", ()=>getStyleOptions);
21931function setRTL(isRTL) {
21932 if (_rtl !== isRTL) _rtl = isRTL;
21933}
21934function getRTL() {
21935 if (_rtl === undefined) _rtl = typeof document !== "undefined" && !!document.documentElement && document.documentElement.getAttribute("dir") === "rtl";
21936 return _rtl;

Callers 1

getRTLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected