0.0.4 • Published 3 years ago

vue-triple-dots v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Vue Triple Dots

Vue js component for showing html element with dot dot dot (...)

Latest Version on NPM Software License npm npm

Demo

Setup

NPM

npm install --save vue-triple-dots

Yarn

yarn add vue-triple-dots

Add dependencies to your main.js:

import Vue           from 'vue'
import VueTripleDots from 'vue-triple-dots'

/*
or for SSR:
import VueTripleDots from 'vue-triple-dots/dist/ssr.js'
*/

Vue.use(VueTripleDots)

Note that all props are optional.

NameTypeDefaultDescription
tagString'div'The element will render.
ellipsisString'...'3 dots will show when text has more.
callbackFunctionundefined
truncatestringundefined
tolerancenumberundefined
keepstringnull
watchstringundefined
heightnumberundefined
readLessKeystringreadLess
readMoreKeystringreadMore

FAQ

Check closed issues with FAQ label to get answers for most asked questions.

Development

To contribute to the library:

# build main library
npm install
npm run build