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

    Showing dismissed alert

    Help
    2
    3
    659
    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.
    • N
      NikTang last edited by

      I placed a <q-alert> in the template, it only show up when the errorMessage is not emprty.

                  <q-alert v-show="errorMessage" key="negative" color="negative" dismissible class="full-width" style="margin-bottom: 1.5rem">
                      {{errorMessage}}
                  </q-alert>
      

      When a user closes this alert, and if there is new errorMessage, I want the alert show up again.

      So my question is: how to make the dismissed alert show up?

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

        you should probably be using Alert.create()

        Edit:
        Per docs, you can use the v-model for this. So:

                    <q-alert v-model="showErrorMessage" @input="" key="negative" color="negative" dismissible class="full-width" style="margin-bottom: 1.5rem">
                        {{errorMessage}}
                    </q-alert>
        
        N 1 Reply Last reply Reply Quote 0
        • N
          NikTang @benoitranque last edited by

          @benoitranque Thanks. I finally go with Alert.create().

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