I have some text I displayed as following:
columnDefs: [
field: "text", displayName: 'Text', width:'20%',
cellTemplate: '<div class="ngCellText" ng-class="col.colIndex()"><span ng-repeat = "text in COL_FIELD" ng-cell-text>{{text.name}}{{$last ? "" : ", "}}</span></div>'}
]
Which basically loops through the "text" variable array I declared in my .js file and displays the contents in the cell. Is there a way to wrap the text so that it wraps around the 20% width I provided? I know that style="white-space: normal
can do text wrapping but I'm not sure how to integrate that with the statement I have above. If anyone could help that would be great.
Thanks!