truncate
Truncates a string based on provided length.
Installation
Global install:
import Vue from 'vue';
import { truncate } from 'vuetensils/src/filters';
Vue.filter('truncate', truncate);
Local install:
<script>
import { truncate } from 'vuetensils/src/filters';
export default {
filters: {
truncate,
},
};
</script>