1.1.0 • Published 2 years ago

svelte-tree-display v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Svelte-Tree-View

Get started

Install the dependencies...

cd svelte-app
npm install

...then start Rollup:

npm run dev

Navigate to localhost:8080. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

Basic usage

<SvelteTree data={mockData} />

For a more detail usage, checkout the Docs.

Data format

[
 {
	id: '0',
       name: `Kevin Klein`,
       checked: false,
       children: [],
 },
 {
	id: '1',
       name: `Marie Loth`,
       checked: false,
       children: [
              {
                     id: '1',
                     name: `Lisa Rot`,
                     checked: true,
                     children: [],
              }
       ],
 },
]