Oh… I forgot the :
So it is going to be like this:
:disable="disableSelect"
Where my:
disableSelect: false
on data.
Oh… I forgot the :
So it is going to be like this:
:disable="disableSelect"
Where my:
disableSelect: false
on data.
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
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/
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
.
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
?
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!
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 asc
to desc
or vice versa on the same column.
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.