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
npm install @neovici/cosmoz-treenode<cosmoz-treenode
key-property="pathLocator"
key-value="1.2.3.301"
value-property="name"
path-separator=" / "
hide-from-root="0"
show-max-nodes="0"
fallback="Not found"
></cosmoz-treenode>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.
- Clone the repository
- Install dependencies:
npm ci - Start Storybook:
npm start
Run tests:
npm testRun tests in watch mode:
npm run test:watchApache-2.0