vue-truncate

A Vue filter that will truncate text to a specified length.
3,552 8
Install
npm install vue-truncate
Latest Version:1.0.0
License:MIT
Last Updated:May 19, 2016
Links: GitHub  ·  npm
Maintainer: brendanneufeld

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.

Related Packages

vue-truncate-filter

A filter for VueJs to truncate string

78,257 56
@sparing-software/v-clamp

Vue directive plugin for text truncate

3,655 15
@opengis/filter

A flexible and extensible filter component system for Vue 3. Ideal for building...

10,212 0
vue-timeago

A timeago filter for Vue.

467,807 717
vue-text-dot

A vue component for text dotdotdot

1,027 15

Version History

Version Released License
1.0.0 MIT