#How to set width of a column??

1 messages · Page 1 of 1 (latest)

maiden dirge
#

According to docs, it should be as simple as doing:

{
  accessorKey: "select",
  size: 24,
  header: ({ table }) => (
    <Checkbox
      checked={
        table.getIsAllPageRowsSelected() ||
        (table.getIsSomePageRowsSelected() && undefined)
      }
      onCheckedChange={(value) => table.toggleAllPageRowsSelected(!!value)}
      aria-label="Vybrat vše"
    />
  ),
  cell: ({ row }) => (
    <Checkbox
      checked={row.getIsSelected()}
      onCheckedChange={(value) => row.toggleSelected(!!value)}
      aria-label="Vybrat řádek"
    />
  ),
  enableSorting: false,
  enableHiding: false,
}

But it doesnt seem to do anything, I am using shadcn for core structure, but thats all. Width doestn seem to even apply to the td for example

lyric matrix
#

ummm.... those are borders, not the width