Donate

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.
.tdOverviewTotalIllustrations div.th-inner {
    white-space: normal !important;
    word-wrap: break-word;
}
Then in Bootstrap-Table's <th> element, set the data-class attribute to the defined style above.
<th data-field="totalIllustrations" data-sortable="true" data-searchable="true" data-class="tdOverviewTotalIllustrations">Total Illustrations</th>

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.