jQuery Plugin dotdotdot

  1. import jquery.js and jquery.dotdotdot.js
  2. give the div height and width style
  3. using dotdotdot after databinding

ex.

<div id="testep" style="width:200px;height:300px;"></div>

$('#testep').text(this._moviesData[0].description);
$('#testep').dotdotdot();

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/