IntegralUI Web - TreeGrid is a native Web Component that displays hierarchical data structures in multiple columns.
npm install integralui-web-treegridbash
npm install https://github.com/lidorsystems/integralui-web-treegrid.git
`
or directly from NPM
`bash
npm i integralui-web-treegrid
`
Note A detailed information is available here: How to Use IntegralUI Web Components. Explains how to setup and use components for each framework: Angular, React or Vanilla JavaScript.
In general you need to open your application and add a reference to a component you want to use. For example, if you are using the IntegralUI TreeGrid component:
$3
`bash
import 'integralui-web-treegrid/components/integralui.treegrid.js';
`
$3
`bash
import IntegralUITreeGridComponent from 'integralui-web-treegrid/wrappers/react.integralui.treegrid.js';
`
Note Currently ReactJS doesn't have full support for Web Components. Mainly because of the way data is passed to the component via attributes and their own synthetic event system. For this reason, you can use available wrappers located under /wrappers directory, which are ReactJS components that provide all public API from an IntegralUI component.
$3
`bash
`
Icons
Because of the web component specification that defines URLs to be always relative to the main document, the path that leads to the icons used by the IntegralUI Web components needs to be set. In addition you may also need to copy/paste the /icons folder in your application folder. Depending on the framework of your choosing this may differ.
$3
Follow these steps:
1. Copy/Paste the content of the integralui-web-treegrid/icons folder under /assets/integralui-web-treegrid/icons subfolder in your React application.
2. Set the resourcePath property of IntegralUI Web components to point to the location set in your /assets folder. In this case, for TreeGrid for example:
`bash
`
$3
Follow these steps:
1. Copy/Paste the content of the integralui-web-treegrid/icons folder under /public/integralui-web-treegrid/icons subfolder in your React application.
2. Set the resourcePath property of IntegralUI Web components to point to the location set in your /public folder. In this case, for TreeGrid for example:
`bash
`
$3
Set the resourcePath property of IntegralUI Web components to point to /integralui-web-treegrid/icons folder. In this case, for TreeGrid for example:
`bash
``