Customization
Last updated
Last updated
You can customize everything. Really everything. But it doesn't has an option
to do "everything". That's why the library has class for every state (loading, selected and so on).
The props theme
is essentially a class for a container. This makes it very easy to set your styles for the tree.
Example how to set a theme:
There are 3 ready-made themes for use
arrowRenderer
checkboxRenderer
textRenderer
It can be either class (React Component) or function. It receives a node
object in the props. Let's see the example of the usage.
The node has a very simple structure.
checkable mode