How to give word wrap break word property to a datatable column
How to give word wrap break word property to a datatable column
<table id="user">
<thead>
<tr class="theader">
<th>Order Id</th>
<th>Message</th>
<th>Date Created</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script>
$("#user").dataTable({
"bFilter": false,
"bAutoWidth": false,
"bProcessing" : false,
"bServerSide" : true,
"sAjaxSource" : "./getOrderDetails.cpm"
});
</script>
Hi friends,
Here is my datatable.I want to implement wordwrap break word property to the message column so that long messages with out space will break.Can you please tell me how should i implement the word wrap break word propety to a column in the datatable.
This discussion has been closed.
Answers
I think you want to use the CSS
word-break
option: https://developer.mozilla.org/en-US/docs/Web/CSS/word-break . It isn't specific to DataTables at all, but you could use DataTables to add a class to the target column and use CSS to break words in that column.Allan