1

I am creating a simple app with the ionic framework, and I want to run a function on each of the swipe events or drag events.

like this : enter image description here

When user swipe up/drag up arrow, it will open it ( like open notifications smarthphone ). swipe down or drag down, it will close it.

Can anyone help provide sample HTML & JS to listen to gesture event?

1 Answer 1

2

Regarding gesture events handlers you can check the Ionic docs, for example:

http://ionicframework.com/docs/api/directive/onDragUp/

AFAIK no official component fits with your requirement (the most similar is ionSlides but works horizontally). However there are some 3rd party directives or demos like the following you may adapt to your needs:

https://github.com/bramus/ion-drawer-vertical

https://github.com/darylrowland/ionic-contrib-swipe-cards

http://www.idangero.us/swiper/demos/#.VrxDjfnhC71

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.