Navigation

    Quasar Framework

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

    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