zzsanduo / angular-clamp

Clamp an element by adding ellipsis if content exceeds parent's width

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular Clamp

Examples

<div clamp="3" ng-bind="text"></div>

The number 3 here means that the number of lines will be displayed

About

Clamp an element by adding ellipsis if content exceeds parent's width


Languages

Language:JavaScript 100.0%