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

I am unable to get the sideBar to render using Enterprise #7

Closed
doghousedev opened this issue Mar 4, 2023 · 2 comments
Closed

I am unable to get the sideBar to render using Enterprise #7

doghousedev opened this issue Mar 4, 2023 · 2 comments

Comments

@doghousedev
Copy link

I have tried the steps listed on the docs but it doesn't render the side bar.

i have imported 'ag-grid-enterprise' before rendering the grid
I have tried 'npm run dev '--force'
I have modified the vite.config.ts to include the 'optimize:include'

The enterprise watermark does show in the console, however no Enterprise features seem to be enabled.

I am using version 29.0

@MichaelKim
Copy link
Owner

Could you provide a small example of your code? I got it working by importing ag-grid-enterprise and setting the sideBar prop to true:

<script>
  import AgGridSvelte from 'ag-grid-svelte';
  import 'ag-grid-community/styles/ag-grid.css';
  import 'ag-grid-community/styles/ag-theme-alpine.css';
  import 'ag-grid-enterprise';

  const columnDefs = [{ field: 'a' }, { field: 'b' }];

  const rowData = [
    { a: 1, b: 2 },
    { a: 3, b: 4 }
  ];
</script>

<div style:height="500px" class="ag-theme-alpine">
  <AgGridSvelte {rowData} {columnDefs} sideBar />
</div>

@doghousedev
Copy link
Author

doghousedev commented Mar 5, 2023 via email

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