We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I finish the first upload, or I want to clear this upload task? I think it need a clear or reset API
The text was updated successfully, but these errors were encountered:
You can put the v-if directive and change to false and to true again, this will reset de component. Something like this:
<template> <vue-base64-file-upload v-if="isAvailable"/> <button @click="reset">Reset</button> </template> <script> export default { components: { VueBase64FileUpload }, data () { return { isAvailable: true } }, methods: { reset () { this.isAvailable = false setTimeout(() => { this.isAvailable = true }, 50) } } } </script>
Sorry, something went wrong.
@diegomengarda this code should as follow: reset () { this.isAvailable = false const _this =this setTimeout(() => { _this.isAvailable = true }, 50) }
reset () { this.isAvailable = false const _this =this setTimeout(() => { _this.isAvailable = true }, 50) }
Nice, works perfect.
No branches or pull requests
when I finish the first upload, or I want to clear this upload task?
I think it need a clear or reset API
The text was updated successfully, but these errors were encountered: