Widgets
Samples
Forum
Support
Documentation
/
Suite 7.0
add
canCopy
copy
eachChild
eachParent
exists
filter
forEach
getId
getIndex
getItem
getItems
getLength
getParent
getRoot
haveItems
isSaved
load
loadItems
move
parse
refreshItems
remove
removeAll
restoreOrder
save
serialize
sort
update
Start
Helpers
TreeCollection API
Methods
getId
gets the ID of an item
string
getId
(
number
index
,
string
parentId
);
Parameters
index
number
the index of the item
parentId
string
the id of the parent of an item
Returns
string
the id of the item
Example
const
id
=
tree.
data
.
getId
(
2
,
"1"
)
;
->
returns
"3"
Back to top