showing results for - "vue truncate text"
Claudia
28 Aug 2018
1<!-- For Vue/Vuetify -->
2<!-- Requires display: inline-block or display: block -->
3
4<span
5  class="d-inline-block text-truncate"
6  style="max-width: 150px;"
7>
8  Suspendisse faucibus, nunc et pellentesque egestas, lacus ante convallis tellus.
9</span>
Lucas
22 May 2019
1filters: {
2        truncate: function (text, length, suffix) {
3            if (text.length > length) {
4                return text.substring(0, length) + suffix;
5            } else {
6                return text;
7            }
8        },
9    }