Submit your widget

Fewlines - is a lightweight jQuery plug-in to cut the text to a specified number of rows

Created 5 years ago   Views 7078   downloads 1360    Author sergeir82
Fewlines - is a lightweight jQuery plug-in to cut the text to a specified number of rows
View DemoDownload
44
Share |

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();

Plugin options

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