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. Gorgc
    3. Topics
    G
    • Profile
    • Following 1
    • Followers 0
    • Topics 10
    • Posts 18
    • Best 1
    • Groups 0

    Topics created by Gorgc

    • G

      How to preview image when using q-file picker? [resolved]
      Help • • Gorgc

      4
      0
      Votes
      4
      Posts
      1326
      Views

      Lurrik

      Hi @Gorgc

      Without q-file you can do something like that :

      TEMPLATE

      <q-card style="width:500px"> <q-card-section class="text-subitle2"> <div :style="{ 'background-image': `url(${imageData})` }" @click="choosepicture"> <span v-if="!imageData" class="placeholder" style="cursor: pointer" >Choose a picture</span> <input hidden class="file-input" ref="fileInput" type="file" @input="onSelectFile" /> </div> <q-img :src="imageData" style="cursor: pointer" @click="choosepicture" /> </q-card-section> </q-card>

      SCRIPT

      <script> export default { name: '', data() { return { imageData: null, } }, methods: { onSelectFile() { const input = this.$refs.fileInput; const files = input.files; this.FileImage = files[0]; if (files && files[0]) { const reader = new FileReader(); reader.onload = e => { this.imageData = e.target.result; }; reader.readAsDataURL(files[0]); this.$emit("input", files[0]); } }, choosepicture() { this.$refs.fileInput.click(); }, }, } </script>
    • G

      WYSIWYG q-editor lazy rules
      Help • • Gorgc

      4
      0
      Votes
      4
      Posts
      425
      Views

      G

      Wah thanks guys

    • G

      vue-country-region-select with quasar select
      Help • • Gorgc

      3
      0
      Votes
      3
      Posts
      288
      Views

      G

      @dobbel Alright I’ll try that, btw thank you

    • G

      Export to csv objects and array of objects
      Help • • Gorgc

      3
      0
      Votes
      3
      Posts
      290
      Views

      G

      @dobbel Alright, thank you

    • G

      How to handle loading state in quasar
      Help • • Gorgc

      5
      0
      Votes
      5
      Posts
      535
      Views

      G

      @dobbel ok i got it, thank you everyone for the great help

    • G

      How to center text in q-chip?
      Help • • Gorgc

      3
      0
      Votes
      3
      Posts
      209
      Views

      G

      @Ilia Ya that’s what i’m looking for, thank you ❤

    • G

      How to create action button in the last row of q-table when using server side pagination q-table
      Help • • Gorgc

      3
      0
      Votes
      3
      Posts
      140
      Views

      G

      @metalsadman Okay it worked!! Thank you ❤