I am using an ag-grid table in my Angular 7 project and i can't span a header cell text on two rows.
What i have now is a header like:
Preferred Option
And i would like it to be
Preferred
Option
However, all that i'm getting is either only Preferred word or Preferred...
Here is the CSS applied:
<!--AG-HEADER-ROOT-->
element.style {
height: 56px;
min-height: 56px;
}
.ag-header-viewport {
box-sizing: border-box;
height: 100%;
overflow: hidden;
width: 0px;
min-width: 0px;
-ms-flex: 1;
flex: 1;
}
div { //ag-header-container
display: block;
}
.ag-theme-material .ag-header-cell, .ag-theme-material .ag-header-group-cell {
line-height: 56px;
padding-left: 24px;
padding-right: 24px;
}
A more hierarchical view is here:
ag-header {
-ms-flex-direction: row;
flex-direction: row;
box-sizing: border-box;
white-space: nowrap;
width: 100%;
display: -ms-flexbox;
display: flex;
.ag-header-row {
position: absolute;
}
.ag-header-cell {
padding-left: 5px;
padding-right: 0;
box-sizing: border-box;
display: inline-block;
height: 100%;
position: absolute;
vertical-align: bottom;
.ag-header-cell-text {
padding-left: 0;
padding-right: 0;
}
}
}
A straight forward approach detailed in other similar raised issues will still give no result:
.ag-header-cell-label {
text-overflow: clip;
overflow: visible;
white-space: normal;
}
How can I obtain a two row .ag-header-cell?