Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup initial Collumm width? #154

Open
Lucrilhas opened this issue Sep 12, 2024 · 1 comment
Open

How to setup initial Collumm width? #154

Lucrilhas opened this issue Sep 12, 2024 · 1 comment

Comments

@Lucrilhas
Copy link

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

@proddy
Copy link
Contributor

proddy commented Sep 12, 2024

Try

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants