This project is maintained by sergeir82
Fewlines - is a lightweight jQuery plug-in to cut the text to a specified number of rows. The plugin was written in CoffeeScript, and easy to use:
$('#sample').fewlines();
Option | Default | Description |
---|---|---|
lines | 2 | The number of lines that you want to show. If amount of text less than a specified number of lines, the text will remain as is. |
openMark | '...' | Open mark label |
newLine | false | If this option is true the open mark is placed on new line |
closeMark | 'close' | Close mark label |
$('#sample-1').fewlines();
$('#sample-2').fewlines({lines : 4});
$('#sample-3').fewlines({openMark : 'some open mark', closeMark : 'other close mark', newLine: true});
Having trouble with this plugin? You can contact with me https://www.facebook.com/sergey.ratnikov.52 or http://vk.com/sergeir82.