I am fetching some data from database and displaying them inside table. I need when any column value will text character will more than some certain length, it will display up to that length and other will be replace with dot (i.e-.....
).
I am providing my code below.
<table class="table table-bordered table-striped table-hover" id="dataTable" >
<thead>
<tr>
<th>Sl. No</th>
<th>Specification</th>
</tr>
</thead>
<tbody id="detailsstockid">
<tr ng-repeat="pro in productDataList">
<td>{{$index+1}}</td>
<td>{{pro.specification}}</td>
</tr>
</tbody>
</table>
In the above code for Specification
contains some paragraph. I need here the paragraph
should display up to 30
character, if it exceeds more than that the remaining text will replace with ....
.