Line-Break/Text-Break for DataGrid2 header?

0
Hi experts,  I would like to create several lines on Datagrid2 header. Does anybody have idea?   It might be quite similar with the question Patrick asked last year. https://community.mendix.com/link/questions/105207 unfortunately text-break css did not work on datagrid2.. datagrid2 property “appearance”
asked
1 answers
3

You will need to target the class column-container in your css. 

  1. Put the class datagrid-wrapheader on your datagrid2
  2. Add something like the following to your css:

 

.datagrid-wrapheader {
     .table-content{
         .column-container{
             white-space: normal;
        }
    }
}
 

This will lead to all your headers wrapping at white spaces:

answered