debabratapatra / angular-tree-grid

Angular 10 Tree Grid
https://curiouslinks.com/pages/angular-tree-grid/demo
MIT License
31 stars 17 forks source link

Not able to customize Grid header using 'header_class' #35

Closed ssdimmanuel closed 4 years ago

ssdimmanuel commented 4 years ago

I am trying to increase the font size of the header text with the following class in styles.css it doesnt seem to consider the class

.header-class{
  font-size: 44px;
}

And my grid config looks like this:

configs: any = {
    id_field: 'id',
    parent_id_field: 'parent',
    parent_display_field: 'name',
    css: { // Optional
      expand_class: 'fa fa-plus-square-o ',
      collapse_class: 'fa fa-minus-square-o',
      header_class: 'header-class'
    },

....

debabratapatra commented 4 years ago

Have you tried !important?

ssdimmanuel commented 4 years ago

Tried !important. Still not working

debabratapatra commented 4 years ago

Hmm, you can try header_renderer

ssdimmanuel commented 4 years ago

Is there an example which I can refer ?