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. avistad
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 12
    • Best 2
    • Groups 0

    avistad

    @avistad

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

    avistad Follow

    Best posts made by avistad

    • RE: Project management tool

      @Ilia please pm me the link on HN next time you post. I would be happy to upvote! Same if you launch on Product Hunt

      posted in Show & Tell
      A
      avistad
    • RE: Google Places Autocomplete using Q-Input not working but works with Input

      This is solved now. Thanks to @metalsadman !

      ---- solution ----
      I modified q-input thus:

          <q-input type="text" placeholder="Enter your address" id="Qautocomplete" ref="Qautocomplete" @keypress="autocompleteLocation" />
      
      

      and under scripts:

          autocompleteLocation () {
            const input = document.getElementById(this.$refs.Qautocomplete.$refs.input.id) as HTMLInputElement;
            const autocomplete = new google.maps.places.Autocomplete(input);
          },
      

      How the Q-Input element works now:

      chrome_6d5rgPfkfT.png

      posted in Framework
      A
      avistad

    Latest posts made by avistad

    • RE: QToggle "on change" event

      @tof06 This solution helped me too… Thank you!

      posted in Help
      A
      avistad
    • RE: Problem importing Firebase (export 'default' was not found in 'firebase')

      @pmooredesigner Thanks for this answer. I had a similar predicament myself

      posted in Help
      A
      avistad
    • RE: Project management tool

      @Ilia please pm me the link on HN next time you post. I would be happy to upvote! Same if you launch on Product Hunt

      posted in Show & Tell
      A
      avistad
    • RE: Project management tool

      Did you post this on Hacker News?

      posted in Show & Tell
      A
      avistad
    • RE: Project management tool

      Wow! Was this written fully in Quasar?

      posted in Show & Tell
      A
      avistad
    • RE: Google Places Autocomplete using Q-Input not working but works with Input

      This is solved now. Thanks to @metalsadman !

      ---- solution ----
      I modified q-input thus:

          <q-input type="text" placeholder="Enter your address" id="Qautocomplete" ref="Qautocomplete" @keypress="autocompleteLocation" />
      
      

      and under scripts:

          autocompleteLocation () {
            const input = document.getElementById(this.$refs.Qautocomplete.$refs.input.id) as HTMLInputElement;
            const autocomplete = new google.maps.places.Autocomplete(input);
          },
      

      How the Q-Input element works now:

      chrome_6d5rgPfkfT.png

      posted in Framework
      A
      avistad
    • RE: Google Places Autocomplete using Q-Input not working but works with Input

      @metalsadman said in Google Places Autocomplete using Q-Input not working but works with Input:

      @avistad try using a ref instead of Id on your qinput, and refer to the wrapped inner input. Ie. this.$refs.myQinput.$refs.input or this.$refs.myQinput.$el.$refs.input, can’t test atm, but something along those lines, or just simply console.log your qinput’s refs and check the object to see the ref of the wrapped native html input in the node.

      Hey metalsadman - Your solution worked !!! Thanks a lot ! Use of $ref was new to me. I have edited the post to show the solution I implemented. But how did you know that ref would work?

      posted in Framework
      A
      avistad
    • RE: Google Places Autocomplete using Q-Input not working but works with Input

      @dobbel Thanks!

      posted in Framework
      A
      avistad
    • RE: Google Places Autocomplete using Q-Input not working but works with Input

      Thanks @metalsadman . I feel a bit embarrassed to say this but I didnt fully grasp the solution you suggested. I am actually new to both VueJS and Quasar.
      So what I understood is I should try to console.log(this.$refs.myQinput.$refs) and then find which object is referenced and use “ref” to point to that?
      (I dont know what “ref” is but I will read up about it)
      Thanks a lot again!

      posted in Framework
      A
      avistad
    • Google Places Autocomplete using Q-Input not working but works with Input

      I am trying to use the Google Places Autocomplete API. I cannot get q-input to do the autocomplete. But if I use input it works. The screenshots clearly the outcomes on the two elements.
      How can I make q-input work like input without installing anything new?

      The code used is:

          <input type="text" placeholder="Enter your address" id="autocomplete" />
          <q-input type="text" placeholder="Enter your address" id="autocomplete" />
      
      
        mounted () {
          const input = document.getElementById("autocomplete") as HTMLInputElement;
          const autocomplete = new google.maps.places.Autocomplete(input);
        },
      

      And in index.template.html

          <script defer
          src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDp6_pFytAjg4BA83uaNTqhBs6LSHpu488&libraries=places&callback=initMap">
          </script>
      
      

      Screenshots 1 and 2:

      chrome_15qIkyBFYf.png

      chrome_jAeEhXBlY1.png

      posted in Framework
      A
      avistad