Extend existing theme
pheyvaer opened this issue · 3 comments
pheyvaer commented
Hi,
Is it possible to extend an existing theme? I tried the following but the theme is not updated.
const theme = cheetahGrid.themes.MATERIAL_DESIGN;
theme.color = 'red';
theme.button.bgColor = '#008CBA';
gride.theme = theme;
ota-meshi commented
Thank you for the question!
To extend the theme you write a script like this:
gride.theme = cheetahGrid.themes.MATERIAL_DESIGN.extends({/* extends */})
pheyvaer commented
Thanks, that works! Is it also possible to
- remove the shadow of button
- change the color when hovering over a button?
ota-meshi commented
- remove the shadow of button
- change the color when hovering over a button?
The current grid button styles don't support them.