Custom item fileds in grid compoenents #1497
cubecleveland
started this conversation in
General
Replies: 1 comment
-
I also fiddled with the idea of using a custom layout type to add custom properties to a layout respectively the layout items.
As @cubecleveland already mentioned the problem is that 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,
How we set custom fields in grid components to stor the component type for example.
i tries adding a key to the props and it doesnt come back on Layout changed
My keys are defined like this:
const [state, setState] = React.useState({
items: [0, 1, 2, 3, 4].map(function (i, key, list) {
return {
i: i.toString(),
x: i * 3,
y: 0,
w: 3,
h: 2,
});
the key settings doesnt come back on layout change.
Is there any way to stor specific data about each grid iem that will be returned ?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions