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 API additional attributes

    Framework
    3
    8
    307
    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.
    • C
      Cobeland last edited by Cobeland

      We would really appreciate if we could have apart from “message” attribute the “title” attribute for Notify API like we have in the dialog.

                          this.$q.notify({
                              title: 'Alert',
                              message: 'test',
                              textColor: "warning",
                              icon: "error"
                          });
      

      Vice versa it would be nice to have some attributes of the dialog API like icon , textColor in Notify API.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        You could just use the dialog. Can’t you?

        https://codepen.io/smolinari/pen/dyyrxqj?editors=1010

        Scott

        1 Reply Last reply Reply Quote 0
        • C
          Cobeland last edited by

          Thanks. Yes I know. But I would like to use Notify plugin.

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

            @Cobeland you can use https://quasar.dev/quasar-plugins/notify#Using-HTML to get what you want, on dialog you can use custom component https://quasar.dev/quasar-plugins/dialog#Invoking-custom-component. You can achieve these already, it’s just a matter of doing so.

            1 Reply Last reply Reply Quote 0
            • C
              Cobeland last edited by

              Thanks, but I wanted to avoid to use html where it’s not necessary due to vulnerabilitiy.
              I think this is a kind of feature request? Or is there a workaround?

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                Where is there a vulnerability? It’s your html, not user created. Or, will it be user created?

                Scott

                1 Reply Last reply Reply Quote 0
                • C
                  Cobeland last edited by

                  Yes its partly user created and thus a candidate for vulnerability. Only a few attributes (similar to the dialog) could solve the problem.

                  1 Reply Last reply Reply Quote 0
                  • C
                    Cobeland last edited by

                    Does Quasar offers some html ‘sanitizing functionalities’ or what is the recommended approach for using user defined HTML.
                    The easiest way in regard of dialog and notify plugins would be to harmonize attributes (like message, title, icon) etc.

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