Created
January 28, 2021 08:39
-
-
Save salmanyaqoob/9afa67c9a4d0a20c13c824da78d11a8d to your computer and use it in GitHub Desktop.
Array Screen JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import app from '@system.app' | |
| import utils from '../../common/utils.js'; | |
| export default { | |
| data: { | |
| arrayData: [ | |
| {id: 1, name: 'jack', age: 18}, | |
| {id: 2, name: 'tony', age: 18}, | |
| ], | |
| }, | |
| touchMove(e){ // Handle the swipe event. | |
| if(e.direction == "right") // Swipe right to exit. | |
| { | |
| utils.backToHome(); | |
| } | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment