Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. sibelly
    • Profile
    • Following 2
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 0
    • Groups 0

    sibelly

    @sibelly

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

    sibelly Follow

    Latest posts made by sibelly

    • RE: [Solved] Dynamic state disable q-select

      Oh… I forgot the :
      So it is going to be like this:

      :disable="disableSelect"
      Where my:
      disableSelect: false on data.

      posted in Framework
      sibelly
      sibelly
    • [Solved] Dynamic state disable q-select

      I would like to know if it is possible to have a dynamic value to disable my entirely q-select, I don’t wanna to disable an option, but the entirely

      5cc6ed66-afa1-4bba-a384-bd96fe59195d-image.png

      When I try something like:

      disable=disableSelect

      It gives me that error:

      Invalid prop: type check failed for prop "disable". Expected Boolean, got String with value "disableSelect".

      That makes sense, so I would like to know if it’s possible is there another way?

      Thanks o/

      posted in Framework
      sibelly
      sibelly
    • RE: Active on `List Item` via active router?

      worked like a charm @mortyspace !

      posted in Help
      sibelly
      sibelly
    • RE: [Solved] QTable v1 sorting doesn't updates the pagination.descending

      Oh… that’s true about the documentation… Sometimes we need to read it again and again to get some details right…

              // don't forget to update local pagination object
              this.pagination.page = page
              this.pagination.rowsPerPage = rowsPerPage
              this.pagination.sortBy = sortBy
              this.pagination.descending = descending
      

      I got it about the @update … I just thought that maybe we could override it with our logic you know ? Like the @request.

      posted in Framework
      sibelly
      sibelly
    • RE: Run dev error while running a new project.

      I’m using the pwa mode normally in the last version… by the console error:
      Error: Cannot find module 'Error: Cannot find module '@babel/preset-stage-2' from '/Users/marcelo/Pro/app-mobile-cfc'' from '/Users/marcelo/Pro/app-mobile-cfc'
      Did you confirmed if the @babel/preset-stage-2 is in your package.json ?

      posted in CLI
      sibelly
      sibelly
    • RE: [Solved] QTable v1 sorting doesn't updates the pagination.descending

      That line:

      // update whole pagination object based on the props you passed in your request method first 
      this.pagination = requestProp.pagination 
      

      Was the missing piece… I made a test and let the pagination object incomplete and it works like a charm… I was just forgetting to actualize the descending value.
      I updated my repo with the fixes if someone have some interested.
      Working with quasar have been an enchanting experience… hope to retribute soon as I get more knowlodge.

      I’m still with doubt about the calling of @update:pagination -> function(newPagination).
      But for now my problem is solved. Thanks guys! 😉

      posted in Framework
      sibelly
      sibelly
    • RE: [Solved] QTable v1 sorting doesn't updates the pagination.descending

      Oh… I got it… I did that to initialize the field… because in my real scenario I pass that information via props… because my table is a shared component you know.
      Is something like below:

      ...
        props: {
          title: String,
          columns: {},
          modelInfo: {
            type: Object,
            default: () => ({
              model: String,
              action: String,
              getter: String,
              sortBy: String,
              descending: Boolean
            })
          }
        },
        created () {
          this.pagination.sortBy = this.modelInfo.sortBy ? this.modelInfo.sortBy : '_id'
          this.pagination.descending = this.modelInfo.descending ? this.modelInfo.descending : true
        },
      ...
      

      But I removed the created call and the problem persists… the first click works on every diferent column… the problem is about the second click to change the ascto desc or vice versa on the same column.

      posted in Framework
      sibelly
      sibelly
    • [Solved] QTable v1 sorting doesn't updates the pagination.descending

      Hey guys, I’m having this issue with the q-table component, that is that I can’t update my pagination info, more specific the descending prop (pagination.descending), it works at the first time, but when I click again on the column, doesn’t work anymore.

      Here it is my git repo with a simple example that I reproduced.

      I know by the docs that exists that @update:pagination -> function(newPagination) event. But I couldn’t make it to work properly, it even isn’t called.

      I apreciate any help.

      posted in Framework
      sibelly
      sibelly