- import jquery.js and jquery.dotdotdot.js
- give the div height and width style
- using dotdotdot after databinding
ex.<div id="testep" style="width:200px;height:300px;"></div>
$('#testep').text(this._moviesData[0].description); |
Important method:
if you binding the data after runing the dotdotdot();
you need to update the UI like this:
$('#testep').trigger("update.dot"); |
other options refer to http://dotdotdot.frebsite.nl/