matfish2 / vue-tables-2

Vue.js 2 grid components
https://matanya.gitbook.io/vue-tables-2/
GNU General Public License v3.0
1.53k stars 305 forks source link

highlightMatches doesn't apply to data output using a <template> #340

Closed techytuppers-zz closed 6 years ago

techytuppers-zz commented 6 years ago

Using a template for column data e.g.

<v-client-table ref="portfolioTable" id="portfolio" :data="portfolioItems" :columns="columns" :options="options">
<!-- Template for Market Price -->
<template slot="MarketPrice" slot-scope="props">
     {{ props.row.MarketPrice | currency('£') }}
</template>
</v-client-table>

with option highlightMatches set to true

Any data in a template like above, doesn't get treated the same with highlight as data that is output in it's native manner. Even removing the filter, so it outputs the data as it would without the template, doesn't show the highlight functionality.

Any advice on how to incorporate the highlight functionality to customised template views?

Thanks! TT

matfish2 commented 6 years ago

Duplicate of #253

techytuppers-zz commented 6 years ago

Ah, apologies!