Replies: 1 comment
-
I read more of the documentation and I found some code around pagination that helped me solved it. const [density, setDensity] = useState<MRT_DensityState>()
Called the above function in :
and passed density to the :
Then just use density in my avatar size. Make sure that density is put in the deps of the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to get density changes when the user clicks on the density toggle. Then use it in my Avatar where right now its hard coded with "sm". Basically if the user clicks on the larger toggle, I want the image to expand to a bigger size.
I read this : https://www.mantine-react-table.com/docs/guides/density-toggle and saw onDensityChange.
However, I don't understand how I would use to get the density. I tried doing something similar to :
onPaginationChange: setPagination,
However, it does not work.
I cut out parts of the code for brevity.
Beta Was this translation helpful? Give feedback.
All reactions