Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. SB
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 45
    • Best 6
    • Groups 0

    SB

    @SB

    6
    Reputation
    45
    Profile views
    45
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    SB Follow

    Best posts made by SB

    • RE: How to use data from apollo-client as data-source of QTable?

      Found a solution:

      • use a different variable for QTable data
      • implement a “watch” on the result variable of apollo-client
      • reset QTable data variable with an empty array
      • iterate with forEach over the result variable of apollo-client in the watch function and push each item inside “value” to it’s counterpart in the QTable data variable
      watch: {
        books () {
          this.tableData = []
          this.books.forEach((value) => {
            this.tableData.push({ id: value.id, author: value.author, title: value.title })
          })
        }
      }
      

      Is there a better solution?

      posted in Help
      SB
      SB
    • RE: Interested in using GraphQL?

      Great job!

      posted in Useful Tips (NEW)
      SB
      SB
    • RE: Colors changed after QCalendar Upgrade

      @Hawkeye64 : Great job, works fine again.

      posted in Help
      SB
      SB
    • RE: Q-table __index return undefined

      @jarvilito
      See https://forum.quasar-framework.org/topic/4723/quasar-v1-4-4-released

      feat+perf(QTable): Skip adding __index to each row (#5608) (might be considered a breaking change if you relied on this undocumented prop; use dataTable.indexOf(rowObject) instead)

      posted in Help
      SB
      SB
    • RE: Q-table __index return undefined

      @jarvilito

      Here is an example from my code.
      I changed this.tableData[this.selected[0].__index] to this.tableData[this.tableData.indexOf(this.selected[0])]

      Maybe this will help you?

      posted in Help
      SB
      SB
    • q-table sorting order using mutated vowels

      Is there a way to set proper lexical order in q-table for UTF-8 strings with mutated vowels using props or do I need to set an explicit method for sorting? If so, is a reviewed solution available?

      posted in Help
      SB
      SB

    Latest posts made by SB

    • RE: New features in the Docs!

      Quick and cool implementation. Even better as hoped for after reading the survey results. Great job, keep it up!

      posted in Announcements
      SB
      SB
    • RE: q-table sorting order using mutated vowels

      @dobbel, @beets Thank you for your replies. In my case

      sort: (a, b) => a.localeCompare(b, 'de')
      

      is the solution.

      posted in Help
      SB
      SB
    • RE: q-table sorting order using mutated vowels

      @dobbel Data is fetched via GraphQL, column name is name. In my case QTable and QSelect using the same data source. For QTable sorting is set by pagination: { sortBy: 'name', descending: false }. Here is the result for QTable:

      Screenshot_2020-11-20 InfoSys.png

      Here is the proper result for QSelect:

      Screenshot_2020-11-20 InfoSys(1).png

      posted in Help
      SB
      SB
    • q-table sorting order using mutated vowels

      Is there a way to set proper lexical order in q-table for UTF-8 strings with mutated vowels using props or do I need to set an explicit method for sorting? If so, is a reviewed solution available?

      posted in Help
      SB
      SB
    • RE: Company profile template made using Quasar Framework

      Looks realy great - good job!

      posted in Useful Tips (NEW)
      SB
      SB
    • RE: Interested in using GraphQL?

      Great job!

      posted in Useful Tips (NEW)
      SB
      SB
    • RE: QCalendar v1.5.2 has been released!

      Happy Birthday! Great job.

      posted in [v1] App Extensions
      SB
      SB
    • RE: Vue apollo configuration with caching for ssr pwa mode(Solved)

      @s-molinari - I’m using @quasar/quasar-app-extension-graphql": "^1.0.0-alpha.1. After your reply I have a look at the extension on https://libraries.io/npm/@m8a%2Fquasar-app-extension-graphql and it seems that app-extension-apollo is the replacement.
      Is this true? If so, can you explain the differences?

      posted in Help
      SB
      SB
    • RE: Vue apollo configuration with caching for ssr pwa mode(Solved)

      @wolfiton
      I’m using the extension with postgraphile (PostgreSQL + GraphQL) in SPA since 9 months. No problems.

      posted in Help
      SB
      SB
    • RE: How can I loop through an array variable in the data section under <script>?

      @felice
      Just try this:

      this.tableData.forEach((item) => {
        console.log('name: ', item.name)
        console.log('frequency: ', item.frequency)
        console.log('prescription: ', item.prescription)
      }
      
      posted in Framework
      SB
      SB