No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Notify: dismiss default actions

    Framework
    2
    6
    421
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • matroskin
      matroskin last edited by

      Hi,
      I have default notify defaults:

      Notify.setDefaults({
          position: 'bottom',
          timeout: 10000,
          textColor: 'white',
          actions: [
              { icon: 'clear', color: 'white' }
          ]
      });
      

      but when I call like this:

      this.$q.notify({
      	message: 'New message',
      	actions: [
      		{ label: 'View', handler: () => console.log('wooow') }
      	]
      });
      

      as result I have two actions:
      alt text

      how can I dismiss default actions and leave only “View” action?

      1 Reply Last reply Reply Quote 0
      • matroskin
        matroskin last edited by

        Anybody helps?

        1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman last edited by

          Dont use default?

          1 Reply Last reply Reply Quote 0
          • matroskin
            matroskin last edited by

            yep, dismiss defaults if I set actions in $q.notify(…)

            1 Reply Last reply Reply Quote 0
            • matroskin
              matroskin last edited by

              Any suggestions?

              1 Reply Last reply Reply Quote 0
              • metalsadman
                metalsadman last edited by metalsadman

                Dont set a default. If you want a notify that would look the same, you can create a mixin or a boot file or even using the notify component that you would call when you want to show it.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post