debounce

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, where x is the argument. Default wait time is 300ms. A debounced handler will be delayed until at least x ms has passed after the call moment; if the handler is called again before the delay period, the delay period is reset to x ms.

  • Example:

    <input @keyup="onKeyup | debounce 500">
doc_VueJS
2016-09-25 05:48:05
Comments
Leave a Comment

Please login to continue.