debounce
-
Limited to: directives that expect
Function
values, e.g.v-on
-
Arguments:
{Number} [wait] - default: 300
-
Usage:
Wrap the handler to debounce it for
x
milliseconds, wherex
is the argument. Default wait time is 300ms. A debounced handler will be delayed until at leastx
ms has passed after the call moment; if the handler is called again before the delay period, the delay period is reset tox
ms. -
Example:
1<
input
@
keyup
=
"onKeyup | debounce 500"
>
Please login to continue.