Filtering Arrays
Hello, I have data that looks like the example below. Using Cell, I can return a map of the data to display each of the tag names separately but for I can't figure out how to filter against that information.
example column: { accessorFn: row => row.tag, header: "tags", cell: cell => { const tags = cell.row.original.tags; return ( tags.map((tag) => { return (tag.name)
}) ) } } example data: { id: 'some id' title : 'some title', description : 'some description', tags: [ { id: 'some id', name: 'some tag name' }, { id: 'some other id', name: 'some other name' } ] }
example column: { accessorFn: row => row.tag, header: "tags", cell: cell => { const tags = cell.row.original.tags; return ( tags.map((tag) => { return (tag.name)
}) ) } } example data: { id: 'some id' title : 'some title', description : 'some description', tags: [ { id: 'some id', name: 'some tag name' }, { id: 'some other id', name: 'some other name' } ] }
2 Replies
national-gold•3y ago
same problem, any solution?
quickest-silver•3y ago
Hi there @nuzreq & @jcenlo I was able to get it to work.
here's the structure of my table data,
here's the column definition for techSkills column,
and here's where I am filtering the table from a dropdown menu,
this is working for me, however when filtering with globalFiltering I am unable to make it work