Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mesqueeb/quasar-app-extension-swipe-to-close

A Quasar extension that allows you to close dialogs by swiping.
https://github.com/mesqueeb/quasar-app-extension-swipe-to-close

Last synced: 12 days ago
JSON representation

A Quasar extension that allows you to close dialogs by swiping.

Awesome Lists containing this project

README

        

# Quasar extension: Swipe to close ⛸

> ARCHIVED:
> When I need similar functionality again in the future I will
> recreate a new project that is framework agnostic.

A Quasar extension that allows you to close dialogs by swiping.

### My extensions

- [swipe-to-close](https://github.com/mesqueeb/quasar-app-extension-swipe-to-close) ⛸
- [draggable](https://github.com/mesqueeb/quasar-app-extension-draggable) 🚡

### Installation

```
quasar ext add swipe-to-close
```

### Demo

- [live demo](https://quasar-app-extension-swipe-to-close.netlify.com/)
- [demo github repository](https://github.com/mesqueeb/quasar-app-extension-swipe-to-close-demo)

**GIF** (might take a while to load...)

![gif](https://github.com/mesqueeb/quasar-app-extension-swipe-to-close/blob/media/swipe-to-scroll.gif)

### Usage

You just have to wrap your q-dialog contents inside a `q-swipe-to-close` component with the same v-model as the q-dialog.

```html

Show dialog




I'm a swipable dialog!


export default {
data () {
return { showDialog: false }
}
}

```

> Please note currently it only supports `position="bottom"` or no position.

If there's interest for other dialog positions and swipe directions, **let me know in an issue!**