1.0.0 • Published 9 years ago

vue-truncate v1.0.0

Weekly downloads
27
License
MIT
Repository
github
Last release
9 years ago

vue-truncate

experimental

A Vue filter that will truncate text to a specified length.

Usage

var Vue = require('vue');
Vue.use(require('../../util/vue-truncate'));

<span v-text="item.description+'...'; | truncate 99 '...'"></span>

The truncate filter requires a length argument. It can also accept a second argument being the clamp or terminal string placed after truncated text.

NPM

License

MIT, see LICENSE.md for details.