data-table / alternative to wrap cells prop #17095
Unanswered
jonathanvanduyne
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My team has made a custom data table component where in production we have insanely long string fields that
-- To solve both of these, our custom component sets the width of the column, ends it in "...", then uses the q-tooltip to display a larger portion of the information needed on mouse hover.
What we hate is that with every table on our site having different numbers of columns with different field lengths we have to manually establish the viewer window (ex. "width: max(200px, 20vw)") css property for the max width on that column each time we do the tooltip and abbreviation. We'd love if there was a prop that would automate this process for us that we could in the columns array specify a prop that would be an alternative to wrap cells for the table and would do something similar to what we've mocked up.
Beta Was this translation helpful? Give feedback.
All reactions