revolist / revogrid

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
https://rv-grid.com
MIT License
2.77k stars 174 forks source link

How to generate a new theme #285

Closed Captain-Justin closed 2 years ago

Captain-Justin commented 2 years ago

image image

like that,rebuild the default stylesheet and customize various aspects of the framework for my particular needs.

PlayApple commented 2 years ago

@Captain-Justin Hello, how did you finally solve this problem? I also noticed that treelab's < revo-grid / > component has many more properties than it does on github. such as canaddcolumn="true"、cabreordercolumn="true".

m2a2x commented 2 years ago

Treelab's project states as a highly customized version of the grid. I think what was done it is a narrow version for their project, but anyway they decided to keep it private and not share with community.

Currently there is no way to define new theme without grid core code customization, this is what was done by treelab. You could always fork it and replace existing theme with your own but problem you'll have it will not be supported. I suggest just to change styles on the grid and pass row sizes on your own.

You can PR feature of support custom theme any time and it would be appreciated by community.