Utility class to manipulate a tree data structure.
npm install @neovici/cosmoz-treenode

A web component to display a node in a tree data structure. Written in TypeScript using PionJS.
- Display a path to a node in a tree structure
- Control display options like maximum nodes to show
- Hide parts of the path from the root
- Customizable separator between path parts
- Fallback text when a path cannot be found
``bash`
npm install @neovici/cosmoz-treenode
`html`
key-value="1.2.3.301"
value-property="name"
path-separator=" / "
hide-from-root="0"
show-max-nodes="0"
fallback="Not found"
>
- npm start - Starts Storybook development server at port 8000npm run build
- - Builds the TypeScript source filesnpm run build:watch
- - Watches and builds TypeScript filesnpm test
- - Runs tests with coveragenpm run test:watch
- - Runs tests in watch modenpm run storybook:build
- - Builds Storybook for productionnpm run storybook:preview
- - Builds and previews Storybook
This component is written in TypeScript. The source files are in the src/ directory.
1. Clone the repository
2. Install dependencies: npm cinpm start
3. Start Storybook:
Run tests:
`bash`
npm test
Run tests in watch mode:
`bash``
npm run test:watch
Apache-2.0