IntegralUI Web Lite - TreeList is a native Web Component that allows you to navigate through tree hierarchy showing only one list at a time.
npm install integralui-web-treelistbash
npm install https://github.com/lidorsystems/integralui-web-treelist.git
`
or directly from NPM
`bash
npm i integralui-web-treelist
`
Open your application and add a reference to a component you want to use. For example, if you are using the IntegralUI TreeList component:
$3
`bash
import 'integralui-web-treelist/components/integralui.treelist.js';
`
$3
`bash
import IntegralUITreeListComponent from 'integralui-web-treelist/wrappers/react.integralui.treelist.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-treelist/icons folder under /assets/integralui/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 TreeList for example:
`bash
`
$3
Follow these steps:
1. Copy/Paste the content of the integralui-web-treelist/icons folder under /public/integralui/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 TreeList for example:
`bash
`
$3
Set the resourcePath property of IntegralUI Web components to point to /integralui-web-treelist/icons folder. In this case, for TreeList for example:
`bash
``