Skip to content

Latest commit

 

History

History

odo-on-swipe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.