# Helpers

# toast(type, message)

This helper shows a <v-toast> component.


  • type - Either 'success', 'info' or 'error'
  • message - The message shown
  • dismissible - Whether or not a click can dismiss the toast

# redirect(url, delay = 0)

Can be used to redirect the current page to the specified url.


  • url - An absolute or relative URL
  • delay - Redirect delay in milliseconds

# log(message)

Writes a message to the console similar to console.log(). The console is useful for testing purposes.


  • message - The message or object to write in the console

# debounce(func, [wait=0], [options={}])

Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.


  • func (Function): The function to debounce.
  • [wait=0] (number): The number of milliseconds to delay.
  • [options={}] (Object): The options object.
  • [options.leading=false] (boolean): Specify invoking on the leading edge of the timeout.
  • [options.maxWait] (number): The maximum time func is allowed to be delayed before it’s invoked.
  • [options.trailing=true] (boolean): Specify invoking on the trailing edge of the timeout.