future-architect/cheetah-grid

Extend existing theme

pheyvaer opened this issue · 3 comments

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;

Thank you for the question!
To extend the theme you write a script like this:

gride.theme = cheetahGrid.themes.MATERIAL_DESIGN.extends({/* extends */})

Thanks, that works! Is it also possible to

  • remove the shadow of button
  • change the color when hovering over a button?
  • remove the shadow of button
  • change the color when hovering over a button?

The current grid button styles don't support them.