clamper.js
v0.1.4
Published
By [vue-clamp](https://github.com/Justineo/vue-clamp).
Downloads
2
Readme
Clamper.js
By vue-clamp.
USAGE
npm i clamper.js --save
// js
import Clamper from 'clamper.js'
new Clamper({
el: '.app',
maxLines: 2,
ellipsis: '...',
toggleBtnTexts: ['expand', 'up'],
text: 'testtesttesttesttesttesttesttesttesttesttesttest'
})
// html
<div class="app"></div>
// or
<div class="app" data-text="testtesttesttesttesttesttesttesttesttesttesttest"></div>