MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / isRTL

Function isRTL

core/src/utils/rtl/dir.ts:6–13  ·  view source on GitHub ↗
(hostEl?: Pick<HTMLElement, 'dir'>)

Source from the content-addressed store, hash-verified

4 * take priority over the root document value.
5 */
6export const isRTL = (hostEl?: Pick<HTMLElement, 'dir'>) => {
7 if (hostEl) {
8 if (hostEl.dir !== '') {
9 return hostEl.dir.toLowerCase() === 'rtl';
10 }
11 }
12 return document?.dir.toLowerCase() === 'rtl';
13};

Callers 15

setNextIndexMethod · 0.90
onKeyDownMethod · 0.90
InputOTPClass · 0.90
DatetimeClass · 0.90
getChangedMonthMethod · 0.90
updateActiveMonthMethod · 0.90
componentDidRenderMethod · 0.90
updateMethod · 0.90
setPressedKnobMethod · 0.90
renderRangeSliderMethod · 0.90
positionPlaceholderMethod · 0.90
positionCancelButtonMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected