react-table-library icon indicating copy to clipboard operation
react-table-library copied to clipboard

How to setup initial Collumm width?

Open Lucrilhas opened this issue 1 year ago • 1 comments

Tried using:

const libTheme = getTheme(DEFAULT_OPTIONS);
const customTheme = useTheme({
    Table: `
      --data-table-library_grid-template-columns:  50% 50px 50px;
    `,
  });
const theme = useTheme([libTheme, customTheme]);

<Table data={dados} theme={theme}>

Already tried changing the size values and using only the custom theme. But none worked

Lucrilhas avatar Sep 12 '24 18:09 Lucrilhas

Try

        <Table
          data={dados}
          theme={customTheme}
          layout={{ custom: true }}
        >

proddy avatar Sep 12 '24 19:09 proddy