in my angularjs/ionic mobile application I have implemented a list of messages. Now I want to modify it, so that if the message text is wider than the div container it should cut the string and adds 3 dots.
My message list looks like this:
<ion-list ng-repeat="message in messages">
<ion-item can-swipe="true" class="item-icon-left item-icon-right">
<i class="icon ion-email-unread"></i>
<div class="row">
<span class="col col-50">
<h2>{{message.title}}</h2>
</span>
<span class="col col-50 content-right text-small">
{{message.dateString}}
</span>
</div>
<div class="row">
<span class="col text-small">
{{message.text}}
</span>
</div>
<i class="icon ion-chevron-right"></i>
<ion-option-button class="button-dark">
More
</ion-option-button>
<ion-option-button class="button-assertive">
Delete
</ion-option-button>
</ion-item>
</ion-list>
How can I do this dynamically, so that it really depends on the width of the device/container?