Skip to main content

DataCollection methods overview

NameDescription
add()Adds a new item to the diagram
copy()Creates a copy of an item at the defined position
eachChild()Iterates through the children of the specified item
eachParent()Iterates through all parents of the specified item
exists()Checks whether the specified item exists in the diagram
filter()Filters items in the diagram
find()Finds the item that corresponds to the specified parameters
findAll()Finds all the items that correspond to the specified parameters
getFilters()Returns an object with the applied filters
getId()Returns the id of the item by its index
getIndex()Returns the index of the item by its id
getItem()Returns the object of an item by its id
getNearId()Looks for a nearest item relative to the specified one
getRoot()Returns the id of the root item by the id of its child
getRoots()Returns an array with ids of all root items of the diagram
load()Loads data from an external file
map()Iterates through all items of the diagram
move()Moves an item to the defined position
parse()Loads data from a local data source
remove()Deletes the specified item from the diagram
removeAll()Deletes all items from the diagram
resetFilter()Resets the active filters
serialize()Serializes the diagram data into an array of JSON objects
update()Updates properties of the item