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. PSTA
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 6
    • Best 2
    • Groups 0

    PSTA

    @PSTA

    2
    Reputation
    132
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    PSTA Follow

    Best posts made by PSTA

    • Carousel with more visible slides at once

      Is there any way, how use QCarousel (or any other component) to show more slides at once? I need something similar to this:

      c23dcb96-d3fd-49b8-9898-1500d42345f7-image.png

      Thx for help in advance

      posted in Help
      P
      PSTA
    • RE: Q-select with hierarchical option list?

      @CWoodman
      Hi,
      you can use v-slot. Here is simple example:

      <q-select
        v-model="selectedItem"
        :options="optionsList"
        clearable
        outlined
        options-selected-class="primary"
      >
        <template v-slot:option="scope">
          <q-expansion-item
            expand-separator
            group="section"
            :default-opened="hasChild(scope)"
            header-class="text-weight-bold"
            :label="scope.opt.label"
          >
            <template v-for="child in scope.opt.children">
              <q-item
                :key="child.value"
                clickable
                v-ripple
                v-close-popup
                @click="selectedItem = child"
              >
                <q-item-section>
                  <q-item-label v-html="child.label"></q-item-label>
                </q-item-section>
              </q-item>
            </template>
          </q-expansion-item>
        </template>
      </q-select>
      

      And hasChild method:

      hasChild (scope) {
        return scope.opt.children.some(c => c.value === this.selectedItem)
      }
      
      posted in Help
      P
      PSTA

    Latest posts made by PSTA

    • RE: Q-select with hierarchical option list?

      @CWoodman
      Hi,
      you can use v-slot. Here is simple example:

      <q-select
        v-model="selectedItem"
        :options="optionsList"
        clearable
        outlined
        options-selected-class="primary"
      >
        <template v-slot:option="scope">
          <q-expansion-item
            expand-separator
            group="section"
            :default-opened="hasChild(scope)"
            header-class="text-weight-bold"
            :label="scope.opt.label"
          >
            <template v-for="child in scope.opt.children">
              <q-item
                :key="child.value"
                clickable
                v-ripple
                v-close-popup
                @click="selectedItem = child"
              >
                <q-item-section>
                  <q-item-label v-html="child.label"></q-item-label>
                </q-item-section>
              </q-item>
            </template>
          </q-expansion-item>
        </template>
      </q-select>
      

      And hasChild method:

      hasChild (scope) {
        return scope.opt.children.some(c => c.value === this.selectedItem)
      }
      
      posted in Help
      P
      PSTA
    • QUploader - file size validation results visible for user

      Hi,
      What is the best way, how detect when file size is over max-file-size prop limit and display this info to the user? I’m not able find way how catch validations output.

      posted in Help
      P
      PSTA
    • QCarousel slide - use img onerror event attribute

      Hi,
      is there any way, how use img tag event attribute onerror with Carousel slide component?

      I have Carousel with images. All images are saved in the cloud. I want to show on the slide default static image, if will be not possible load original image from the server.

      posted in Help
      P
      PSTA
    • RE: Advice about Charts and Quasar

      @eurus-pro
      Hi,
      Try vue-chart.js. It’s wrapper for chart.js library. Great, if you need high customizable library with a lot of plugins.

      posted in Help
      P
      PSTA
    • Carousel with more visible slides at once

      Is there any way, how use QCarousel (or any other component) to show more slides at once? I need something similar to this:

      c23dcb96-d3fd-49b8-9898-1500d42345f7-image.png

      Thx for help in advance

      posted in Help
      P
      PSTA
    • Date utils - endOfDate

      Hi,
      I’m using date.endOfDate this way:

      getEndDateOfYear (inputDate) {
          if (!date.isValid(inputDate)) {
            inputDate = this.getDate()
          }
          return date.endOfDate(newDate, 'year')
        }
      

      where inputDate value is for example : ‘Fri Sep 01 2017 00:00:00 GMT+0200 (Central Europe Daylight Time)’

      I found that output value of my method is ‘Sat Dec 30 2017 23:59:59 GMT+0100 (Central Europe Standard Time)’
      Is it correct? Because December has always 31 days… or is problem on my side?

      Thx in advance
      Petr

      posted in Framework
      P
      PSTA