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
    1. Home
    2. bcoffield
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Groups 0

    bcoffield

    @bcoffield

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    bcoffield Follow

    Latest posts made by bcoffield

    • RE: Qselect with async data defaulting to [object Object]

      Ha! Thank you very much! My problem was because I was initiating ebscoTemp as an empty object. I’m using that to process what is selected so that I can then update the database.

      My original vanilla vue code has each item in the controller with a part of their object as a boolean named “selected” and I was using that to know what to put in the database.

      Is there a way to tell q-select to, when selecting an item, change that boolean that is within :options="ebscoCachedSearchesController" ??

      posted in Help
      B
      bcoffield
    • Qselect with async data defaulting to [object Object]

      In my created() area I have a call to Firestore that fills a array I’ve setup in my data area named ebscoCachedSearchesController. It is an array of objects and I have the objects set properly to show in the qselect. When the select shows it displays as if an option has already been selected and that is [object Object]. However! When I click on the select I see all the options I expect to see and can click them and everything from that point works as desired.

      How to I get rid of [object Object] and have the qselect be in its base state until I click on it?

       <q-card-section>
              <template v-if="ebscoCachedSearchesController.length > 0">
                <q-select
                  dark
                  :options="ebscoCachedSearchesController"
                  v-model="ebscoTemp"
                  filled
                  label="Cached Search to Use"
                >
                </q-select
              >
              </template>
            </q-card-section>
      

      In created():

         this.$firestore.collection("ebsco-searches").onSnapshot(querySnapshot => {
              this.ebscoCachedSearchesController = [];
              querySnapshot.forEach(doc => {
                let rObj = {};
                rObj.name = doc.data().searchTerm;
                rObj.label = doc.data().searchTerm;
                rObj.value = doc.data().searchTerm;
                rObj.id = doc.id;
                rObj.selected = false;
                this.ebscoCachedSearchesController.push(rObj);
                this.ebsco_a9h_loading = false;
              });
      

      I’ve been digging a while and I just can’t figure it out. Thanks a lot for any help.

      posted in Help
      B
      bcoffield