Bootstrap Table Apply Word Break To <th> Cell Text
To apply word-break to a Bootstrap-Table <th> cell text by Wenzhixin, create a css style that set's the inner div of <th> white-space to normal !important and word-wrap to break-word.
Then in Bootstrap-Table's <th> element, set the data-class attribute to the defined style above.
.tdOverviewTotalIllustrations div.th-inner { white-space: normal !important; word-wrap: break-word; }
<th data-field="totalIllustrations" data-sortable="true" data-searchable="true" data-class="tdOverviewTotalIllustrations">Total Illustrations</th>
Comments
Post a Comment