Installation & Usage

Download

npm

Installing via npm

npm install apextree --save

Usage

import ApexTree from 'apextree'

OR

Direct <script> include

Another way is to directly include it in your html

<script src="https://cdn.jsdelivr.net/npm/apextree"></script>

Inside a shadow root

From 2.2.0, ApexTree works inside a shadow root, such as a custom element or a Lit component: its styles, keyboard focus and tooltips stay inside the root it renders in, and CSS variables set on the host reach it. Create it on an element inside the root and call destroy() when the element leaves the page.