4

I want to truncate many value on the vue-multiselect.

I tried this to override many class but it's not working, like this example :

.multiselect__content-wrapper {
    overflow-x: hidden;
    text-overflow: ellipsis;
}
Gaurav
  • 315
  • 1
  • 11
Seb
  • 404
  • 2
  • 4
  • 14

1 Answers1

-1

If you're asking how to modify options array then use splice or slice:

var a1 = [2,4,6,8];
var a2 = a1.splice(-2,2); // a1=[2,4], a2=[6,8]
var a1 = [2,4,6,8];
var a2 = a1.slice(-2); // a1=[2,4,6,8], a2=[6,8]
mai elrefaey
  • 394
  • 1
  • 3
  • 10