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

    What is best practice for :loading on multiple Q-Btns?

    Help
    2
    3
    220
    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.
    • F
      FascistDonut last edited by

      I have a component that renders a dynamic list that includes an action button for each list. For :loading on that button I use a global inProgress variable that is set to true before my post request, then it is set to false when the request receives a response. This works great, except that it makes all the buttons spin like they are loading whenever 1 is hit.

      Do you guys have a good pattern for using keyed loading parameters or something?

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

        This help?

        https://jsfiddle.net/smolinari/r3fjus0L/

        Scott

        1 Reply Last reply Reply Quote 1
        • F
          FascistDonut last edited by

          That’s perfect, thank you.

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