5 Replies
helpful-purple•3y ago
const defaultColumns: ColumnDef<Images>[] = [
{
accessorKey: 'image',
header: () => 'Image',
footer: (info) => info.column.id,
cell: (info) =>
flexRender(Avatar, {
src: info.row.original.image,
width:
${size === 'small' ? 'w-6' : size === 'medium' ? 'w-10' : 'w-14'}
})
},other-emerald•3y ago
could not make it work, src and alt stay empty. Do you see a mistake ?
metropolitan-bronze•3y ago
maybe@GUS try export let src: string;
other-emerald•3y ago
yep that was it 😅 😅 also used instead of i didn't took time to check the difference but it is working fine now . So much lost time for a tiny mistake 🥲 .
like-gold•3y ago
Hi! I'm trying to create a display column with a couple of buttons in it. So far, I was able to get the buttons to show, but now, I don't know how to handle events thrown from those buttons. Any chance you were able to make this work?