Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 539 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 539 Bytes

Odo On Swipe

Provide event hook for swipes on an element.

Install

npm install @odopod/odo-on-swipe --save

Quick Start

import OdoOnSwipe from '@odopod/odo-on-swipe';

const element = document.getElementById('foo');
const instance = new OdoOnSwipe(element, swiped(event) {
  element.textContent = 'Swiped ' + event.direction;
});

Visit the Odo component directory for demos, code examples, and documentation.