Index

mmo-tree

1 symbol · generated 30 Sep 2026

element

mmo-tree

mmo-tree.jhs:1

Tree element to display a tree of items

<mmo-tree multiple value></mmo-tree>
Extends
CustomShadowElement
Config: { {label}: { icon: {string}, value: {string}, title: {string} children: { {label}: ... } } or {label}: {value} }

Index

multipleif true, the tree is multiple
valuethe value of the tree
placeholderthe placeholder of the tree
ViewDefault static readonly accessor
config accessorGet the config of the tree
multiple accessorGet the multiple of the tree
value accessorGet the value of the tree
search accessor
init()
toggleSelectAll()Toggle the select all of the select
_addItemChildren(children, root)Add the children of the item
getItemNode(value)Get the node of the item
addItem(item, root)Add the item to the tree
clickItem(event)Click the item
toggleDetail(event)Toggle the detail of the item
clearSearch()
.searchingadd a badge to the nodes to show the group id

Attributes3

placeholder

mmo-tree.jhs

the placeholder of the tree

placeholder

Properties5

config

accessormmo-tree.jhs:50

Get the config of the tree

get config() set config(value)
Type
object

multiple

accessormmo-tree.jhs:69

Get the multiple of the tree

get multiple() set multiple(value)
Type
boolean

value

accessormmo-tree.jhs:88

Get the value of the tree

get value() set value(value)
Type
array

Methods8

toggleSelectAll()

mmo-tree.jhs:117

Toggle the select all of the select

toggleSelectAll()

_addItemChildren(children, root)

mmo-tree.jhs:141

Add the children of the item

_addItemChildren(children, root)
childrenobject- The children of the item
rootHTMLLIElement- The root of the item

getItemNode(value)

mmo-tree.jhs:158

Get the node of the item

getItemNode(value)
valuestring- The value of the item
returnsHTMLLIElementThe node of the item

addItem(item, root)

mmo-tree.jhs:168

Add the item to the tree

addItem(item, root = null)
itemobject- The item to add
root = nullHTMLLIElement- The root of the item
returnsHTMLLIElementThe node of the item

clickItem(event)

mmo-tree.jhs:202

Click the item

clickItem(event)
eventMouseEvent- The event

toggleDetail(event)

mmo-tree.jhs:231

Toggle the detail of the item

toggleDetail(event)
eventMouseEvent- The event

CSS hooks1

.searching

mmo-tree.jhs

add a badge to the nodes to show the group id

.searching