Is it possible to have different traits value of component for different devices? #5502
Replies: 3 comments
-
Is it possible to set trait value for each device? |
Beta Was this translation helpful? Give feedback.
-
I don't think so, since traits render as element attributes, and those aren't affected by css media queries. You could add 3 different 'position' traits (one for each device) and show/hide them with some custom code depending on the current device. A bit hacky, I know, but I think it should work. |
Beta Was this translation helpful? Give feedback.
-
👆 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to make traits like style manager, inherit the configuration of the previous device, and have separate traits for each device?


Is it possible to set device for each device?


my inspiration comes from #2192
Beta Was this translation helpful? Give feedback.
All reactions