svelte-tree-display
v1.1.0
Published
---
Downloads
5
Maintainers
Readme
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: [],
}
],
},
]