mmo-tree
1 symbol · generated 30 Sep 2026
mmo-tree
mmo-tree.jhs:1Tree element to display a tree of items
- Extends
- CustomShadowElement
Index
| multiple | if true, the tree is multiple | |
| value | the value of the tree | |
| placeholder | the placeholder of the tree | |
| ViewDefault static readonly accessor | ||
| config accessor | Get the config of the tree | |
| multiple accessor | Get the multiple of the tree | |
| value accessor | Get 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() | ||
| .searching | add a badge to the nodes to show the group id |
Attributes3
multiple
mmo-tree.jhsif true, the tree is multiple
multiple
value
mmo-tree.jhsthe value of the tree
value
placeholder
mmo-tree.jhsthe placeholder of the tree
placeholder
Properties5
ViewDefault
staticreadonlyaccessormmo-tree.jhs:33config
accessormmo-tree.jhs:50Get the config of the tree
- Type
object
multiple
accessormmo-tree.jhs:69Get the multiple of the tree
- Type
boolean
value
accessormmo-tree.jhs:88Get the value of the tree
- Type
array
search
accessormmo-tree.jhs:258- Type
string
Methods8
init()
mmo-tree.jhs:40toggleSelectAll()
mmo-tree.jhs:117Toggle the select all of the select
_addItemChildren(children, root)
mmo-tree.jhs:141Add the children of the item
| children | object | - The children of the item |
| root | HTMLLIElement | - The root of the item |
getItemNode(value)
mmo-tree.jhs:158Get the node of the item
| value | string | - The value of the item |
| returns | HTMLLIElement | The node of the item |
addItem(item, root)
mmo-tree.jhs:168Add the item to the tree
| item | object | - The item to add |
| root = null | HTMLLIElement | - The root of the item |
| returns | HTMLLIElement | The node of the item |
clickItem(event)
mmo-tree.jhs:202Click the item
| event | MouseEvent | - The event |
toggleDetail(event)
mmo-tree.jhs:231Toggle the detail of the item
| event | MouseEvent | - The event |
clearSearch()
mmo-tree.jhs:242CSS hooks1
.searching
mmo-tree.jhsadd a badge to the nodes to show the group id
.searching