How to highlight text in a string

Vue and Quasar frameworks String: "Lorem ipsum dolor sit amet CONSECTETUR adipiscing elit" Template The following code does not work <span:class="[highlight]"> {{ highlightSearchExpression(string) }} /> Using v-html (works inconsistently; merge search word with other words) <span v-html="highlightSearchExpression(string)" :class="[highlight]" /> Method highlightSearchExpression: function (str) { let searchWords = ‘CONSECTETUR’; if (str && searchWords) { //In case… Read More How to highlight text in a string

How to highlight text in a string

Vue and Quasar frameworks String: "Lorem ipsum dolor sit amet CONSECTETUR adipiscing elit" Template The following code does not work <span:class="[highlight]"> {{ highlightSearchExpression(string) }} /> Using v-html (works inconsistently; merge search word with other words) <span v-html="highlightSearchExpression(string)" :class="[highlight]" /> Method highlightSearchExpression: function (str) { let searchWords = ‘CONSECTETUR’; if (str && searchWords) { //In case… Read More How to highlight text in a string

Filter in select vue

Tell me how to make the filter in the select work When opening a select, there is no list and no value is selected I use Quasar but I don’t understand why it doesn’t work <q-select v-model="model" use-input :options="regionsOptions" @filter="filterFn" > </q-select> export default { data() { return { model: ”, regions: [ { "label":… Read More Filter in select vue