Skip to content

Instantly share code, notes, and snippets.

@andreliem
Created June 11, 2018 22:46
Show Gist options
  • Save andreliem/b941f050f7df04fde766c2736d0c1231 to your computer and use it in GitHub Desktop.
Save andreliem/b941f050f7df04fde766c2736d0c1231 to your computer and use it in GitHub Desktop.
<script>
methods: {
onDateChanged () {
alert({
title: "Date Changed",
message: "The date was changed",
okButtonText: "OK"
}).then(() => {
console.log("closed it");
});
},
buttonTap () {
action("Take Action", "Cancel", ["Option1", "Option2"])
.then(result => {
console.log(result);
});
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment