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

    Inner loading or other progress for select populated via vuex ajax

    Framework
    2
    3
    492
    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.
    • G
      genyded last edited by

      Has anyone come up with a way to show inner loading (or some other progress indicator) for a QSelect with options populated via an ajax call on page load? We tried:

      <q-field>
        <q-select
          v-show="!visible"
          float-label="Country"
          @input="setCurrentCountry"
          :value="$store.state.app.currentCountry"
          :options="countries.map(country => (
             {label: country.name, value: country.id}
          ))"
        >
      </q-select>
      <q-inner-loading :visible="visible">
        <q-spinner-dots size="25px" color="primary"></q-spinner-dots>
        </q-inner-loading>
      </q-field>
      

      …and this generally works, but the loader is HUGE and overlaps the next input or whatever is after the select. Ideally we’d like the select display with dots or some other loader inside it until the options data arrives. However just displaying a loader in place of the select control until the data arrives will work as well, however it needs to be sized to the control. Any thoughts?

      1 Reply Last reply Reply Quote 0
      • O
        ouaR last edited by

        Did you try to add “relative-position” class to <q-field> ?

        1 Reply Last reply Reply Quote 0
        • G
          genyded last edited by

          With that class, the loader is not visible on the page at all.

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