mr-stasyuk
7/10/2018 - 12:52 PM

JS Text Ellipsis

methods: {
  longLabel(label) {
    if(label.length > 18 ) {
        return label.substring(0,18) + '...';
    }else {
        return label;
    }
  },
  hideModal() {
    this.$root.$emit('bv::hide::modal', 'custom-modal-id')
  }
}

computed:  {
  filteredList() {
      let resp = this.participants.filter((item) => {
          if (!!item) {
              return item.username.toLowerCase().includes(this.tagSearch.toLowerCase())
          }
      });
      return resp;
  }
},