How to use the quasar.Toast.create function in quasar

To help you get started, we’ve selected a few quasar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github quasarframework / quasar-play / src / components / showcase / global / dialog.vue View on Github external
handler (data, close) {
                    if (!data.prevent.length) {
                      close(() => {
                        Toast.create(`Finally. It's closed now.`)
                      })
                      return
                    }
                    Toast.create('Untick "Prevent" checkbox to be able to close the Dialog.')
                  }
                }
github quasarframework / quasar-play / src / components / showcase / global / dialog.vue View on Github external
handler (data) {
                    clearTimeout(timeout)
                    Toast.create('Canceled...')
                  }
                }
github openhab / org.openhab.ui.habot / web / src / components / Settings.vue View on Github external
handler (data) {
              LocalStorage.set('habot.googleApiKey', data.key)
              Toast.create('API Key Set for this device')
            }
          }
github quasarframework / quasar / dev / components / global / toast.vue View on Github external
basicToastWithLongMessage () {
      Toast.create('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.')
    },
    toastWithType (type) {
github quasarframework / quasar-play / src / components / showcase / web-components / modal.vue View on Github external
notify (eventName) {
      Toast.create(`Event "${eventName}" was triggered.`)
    },
    openSpecialPosition (position) {
github quasarframework / quasar / dev / components / global / toast.vue View on Github external
toastWithOnDismiss () {
      Toast.create({
        html: 'Showing Dialog after Toast is dismissed.',
        timeout: 5000,
        onDismiss () {
          Dialog.create({
            title: 'Dismissed',
            message: 'Toast was just dismissed!',
            buttons: ['OK']
          })
        }
      })
    },
    toastWithTimeout () {
github quasarframework / quasar / dev / components / global / toast.vue View on Github external
handler () {
            Toast.create('But, but... I just showed you..')
          }
        }
github quasarframework / quasar / dev / views / popover.vue View on Github external
click (target) {
      Toast.create('clicked')
      if (target) {
        target.close()
      }
    }
  }