Web Component: j-TreeView
j-TreeView (BETA)
This component is only a beta preview. It's still under construction.
- jComponent
v19|v20
Configuration:
parent
{String}
a container with fixed height, can bewindow
. Default value:parent
element.visibleY
{Boolean}
still showsY
scrollbar (default:true
)movable
{Boolean}
enables the moving of nodes (default:true
)cachexpand
{Boolean}
remembers the previous state (default:true
)arrows
{Boolean}
enables arrows for folders (default:true
)expanded
{Boolean}
expands all nodes (default:false
)autosort
{Boolean}
sorts nodes according toitem.sort
(if exists) oritem.name
(if exists), default:true
margin
{Number}
top/bottom margin together (default:0
)marginxs
{Number}
top/bottom margin together forxs
screen widthmarginsm
top/bottom margin together forsm
screen widthmarginmd
top/bottom margin together formd
screen widthmarginlg
top/bottom margin together forlg
screen widthdisabled
{Boolean}
disables the entire componentparentselectable
{Boolean}
parent will be selectable (default:true
)
Data structure:
- Object Array
- Object has to contain
id:String
which is the main ID of each item - Object has to contain
name:String
andchildren:[another similar object]
orchildren:null
(with no children) - Object has to contain
html:String
is rendered as content (if it doesn't exist thenname
is rendered) - Object item can contain
..., classname: 'css_custom_class' }
, it adds a CSS class onto the "label" element - Object item supports property
actions:
{ expand: true, drop: true, move: true }
Author
- Peter Širka petersirka@gmail.com
- License
Created
20. january 2020
Updated
21. january 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com