Skip to content

Experience-Monks/vue-truncate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published