Within my input field, I have implemented a method called activate
triggered by v-on:input
. This method is structured as follows:
export default: {
data() {
return {
isHidden: true
}
},
methods: {
activate() {
this.isHidden = false;
}
}
}
The isHidden
property controls the display of an icon, serving as an illustrative example rather than essential functionality.
Currently, the activate
function is triggered immediately upon user input. I'm exploring ways to introduce a delay using setTimeout
. Here's what I attempted without success:
methods: {
setTimeout(function() {
activate() {
this.isHidden = false;
}
}, 500)
}