Closed alxndr closed 1 week ago
Hey @alxndr! In the current version (beta) you need to have shadcn-svelte installed first. As it is written in the documentation:
“As of today, datagrid uses components offered by shadcn-svelte. In the future there will be a native and headless version. So, I assume you have shadcn-svelte installed. If not here is how to do it. You do not need to install allcomponents, only dropdown menu, select, button and optionally context menu, popover are used.”
Your suggestion to add the option with installing all deps including shadcn-svelte
is a very good idea. However, in the coming days there will be an official V1 version of datagrid with a lot of improvements, new features, new api, a selection of styling options, and most importantly, a fully headless version. Therefore, it will not be introduced now.
To answer your second question: yes, app.css
refers to the global file with styling and applied tailwind @layers
The beta version tightly connects the component to the datagrid logic, which was completely changed in the official v1 release. There will be several options to choose from, There will be available as I mentioned the main part of the datagrid in the headless version similar to @tanstack-table
. So anyone needing only internal logic will be like at home. In addition, on the basis of this headless logic will be built ready-to-use and easy to customize components also based on shadcn-svelte. I realize that not everyone likes tailwind, so I would also like to prepare a version built and styled without shadcn-svelte and tailwind.
TLDR: hold off on implementation for a few days. Upcoming official release will have a stable core API, more features, long term support.
Sounds good @tzezar, thank you! Looking forward to v1!
Instead, I attempted the manual installation.
Now I am getting Svelte to render, however on the page where I have started to integrate Datagrid, I see a lot of errors: