iamyuu / gridjs-svelte

A Svelte wrapper component for Grid.js

Home Page:https://npm.im/gridjs-svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gridjs-svelte

A Svelte wrapper component for Grid.js

Installation

npm install gridjs gridjs-svelte

Usage

<script>
	import Grid from "gridjs-svelte";

	const data = [
		{ name: "John", email: "john@example.com" },
		{ name: "Mark", email: "mark@gmail.com" },
	];
</script>

<Grid {data} />

<style global>
	@import "https://cdn.jsdelivr.net/npm/gridjs/dist/theme/mermaid.min.css";
</style>

You can pass all Grid.js configs, refer to Grid.js types for specific configuration options.

Example

Contributing

PRs are welcome! You noticed a bug, a possible improvement or whatever? Any help is always appreciated, so don't hesitate opening one!

Get started (Devs)

git clone https://github.com/iamyuu/gridjs-svelte
cd gridjs-svelte
npm install
npm run dev:web

Running the tests

npm test

# or on watch mode
npm run test:watch

About

A Svelte wrapper component for Grid.js

https://npm.im/gridjs-svelte

License:MIT License


Languages

Language:Svelte 52.7%Language:TypeScript 33.8%Language:JavaScript 11.7%Language:HTML 1.9%