# Svelte
(opens new window) (opens new window) (opens new window) (opens new window)
ActiveWidgets Datagrid for Svelte.
ATTENTION!
This package requires dependencies under ⚠️ FREE TRIAL/COMMERCIAL license. You have to purchase a license (opens new window) for each developer in your team before including this package in your application.
The library is available as an NPM package.
> npm install --save @activewidgets/svelte
# NPM package
The main module exports ActiveWidgets component classes.
import { Datagrid } from "@activewidgets/svelte";
The css files are imported as dependencies - your bundler/build script should be configured to process css imports.
# Separate JS, CSS
If you build js and css separately - use @activewidgets/svelte/js
and @activewidgets/svelte/css
modules.
import { Datagrid } from "@activewidgets/svelte/js"; // code
import "@activewidgets/svelte/css"; // stylesheets
# Bundle
There is also a bundle
module, which includes stylesheets as a string inside the javascript code and automatically injects them as a <style> tag into the page <head>.
import { Datagrid } from "@activewidgets/svelte/bundle";
This is the simplest if your build script does not like css imports.
# Components
Export | Description |
---|---|
Datagrid | Datagrid component |
Row | Row component |