Append to UTable header template slot
I want to add a textfield to certain columns of my table to be used as filters. For example, to filter the "title", "invNo", or "address" columns of my table. I have achieved this by creating custom
<template #title-header="{column}">...
slots. However, this completely removes the NuxtUI components, leaving me having to implement such things as sorting myself.
Is there a way to only append to the default NuxtUI UTable slot, leaving the default functionality intact?1 Reply
Alright, here's my current, bad implementation:
Add a special row to the data:
React to that row with a v-if in every data template slot: This works, however, it makes the filter row move around when sorting.
rows.push({filterRow: true})
React to that row with a v-if in every data template slot: This works, however, it makes the filter row move around when sorting.