q-table not showing manually generated columns in grid mode
-
Hi, I have a table with some action buttons, I want the table to be like a grid in sm screens and I am using :grid="$q.screen.lt.sm", but action buttons are disappearing in the grid view, how can I have a grid view of tables with that action buttons?
code sandbox example:
https://codesandbox.io/s/grid-view-with-action-buttons-iq3jh
-
@firibz action buttons on row doesn’t get auto generated when you change view. look for slot
item
instead.
https://codepen.io/metalsadman/pen/dyGovWL -
This post is deleted! -
@metalsadman said in q-table not showing manually generated columns in grid mode:
@firibz action buttons on row doesn’t get auto generated when you change view. look for slot
item
instead.
https://codepen.io/metalsadman/pen/dyGovWLwo0ow, thank you indeed @metalsadman
-
@metalsadman said in q-table not showing manually generated columns in grid mode:
@firibz action buttons on row doesn’t get auto generated when you change view. look for slot
item
instead.
https://codepen.io/metalsadman/pen/dyGovWLjust one more question, can I use slot “item” to override only one column in the grid view? am I have to write the whole card?
-
@firibz you will have to write the whole unfortunately, like what’s in the example you can loop for columns that will have a generic look.