You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked if this feature request is not already reported
Description
I would like to add dynamic inline-styling to a specific tile/button without assigning a className or changing tileContent.
In React it is possible to do this:
Assigning a tileClassName isn't sufficient because you need to already have defined the colors in an external CSS file for that particular class. This isn't dynamic. My goal is to let the user decide the color of a particular tile from a color-palette within the program.
Proposed solution
Similar to how we assign a className using tileClassName, there can be a method such as tileStyle to handle inline styling.
A much more maintainable approach would be to either create a generic tileProps function, or a renderTile function that would let override the default tile rendering logic.
Before you start - checklist
Description
I would like to add dynamic inline-styling to a specific tile/button without assigning a className or changing tileContent.
In React it is possible to do this:
Assigning a tileClassName isn't sufficient because you need to already have defined the colors in an external CSS file for that particular class. This isn't dynamic.
My goal is to let the user decide the color of a particular tile from a color-palette within the program.
Proposed solution
Similar to how we assign a className using tileClassName, there can be a method such as tileStyle to handle inline styling.
Alternatives
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: