Helpers
toast(type, message)
This helper shows a <v-toast>
component.
API
type
- Either 'success', 'info' or 'error'message
- The message showndismissible
- Whether or not a click can dismiss the toast
redirect(url)
Can be used to redirect the current page to the specified url
.
API
url
- An absolute or relative URL
delay(function, delay)
Calls a function after a specified number of milliseconds..
API
function
- The function that will be executeddelay
- The number of milliseconds to wait before executing the code. If omitted, the value 0 is used
log(message)
Writes a message to the console similar to console.log()
. The console is useful for testing purposes.
API
message
- The message or object to write in the console