MCPcopy
hub / github.com/mdbootstrap/TW-Elements / _orderToDirection

Method _orderToDirection

src/js/free/components/carousel.js:678–688  ·  view source on GitHub ↗
(order)

Source from the content-addressed store, hash-verified

676 }
677
678 _orderToDirection(order) {
679 if (![ORDER_NEXT, ORDER_PREV].includes(order)) {
680 return order;
681 }
682
683 if (isRTL()) {
684 return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT;
685 }
686
687 return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT;
688 }
689
690 // Static
691

Callers 1

_slideMethod · 0.95

Calls 1

isRTLFunction · 0.90

Tested by

no test coverage detected