Skip to content
Discussion options

You must be logged in to vote

https://codepen.io/metalsadman/pen/YzvrWgV

Yes, of course it will work when you put the condition inside the QTh, but in my case I have multiple components which use QTh as the root component and want to switch between those, depending on a flag set in the columns!

And either way, shouldn't it still be possible to use these conditions inside header-cell, if it's possible to use it in body-cell?

do it like you're doing, but use a key ie. <q-td :key="props.col.name"..., you have a questionable condition too, where some columns you didn't define sortable or defined it as string so you'll have to account for that also.
https://codepen.io/metalsadman/pen/poKWEpv

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@danielwillms
Comment options

Answer selected by danielwillms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug 🐞 Qv2 🔝 Quasar v2 issues bug/1-repro-available A reproduction is available and needs to be confirmed. area/components flavour/quasar-cli-vite
2 participants
Converted from issue

This discussion was converted from issue #14907 on November 16, 2022 17:13.