documentationfor yFiles for HTML 2.6

Usages of NodesSource

Method Return Values

createGroupNodesSource (TDataItem[] | Iterable<TDataItem> | Map<any,TDataItem> | { [id: string]: TDataItem; } | (() => GeneratorLike<TDataItem>, function(TDataItem, Object):Object, )in GraphBuilderCreates a new NodesSource<TDataItem> and binds a collection of group node data items to it.
createNodesSource (TDataItem[] | Iterable<TDataItem> | Map<any,TDataItem> | { [id: string]: TDataItem; } | (() => GeneratorLike<TDataItem>, function(TDataItem, Object):Object, )in GraphBuilderCreates a new NodesSource<TDataItem> and binds a collection of node data items to it.
createChildNodesSource (function(TDataItem):Object, function(TChildDataItem, Object):Object?)in NodesSourceRegisters a collection of child data items functioning as child entities for the NodeCreator<TChildDataItem> of the returned NodesSource<TChildDataItem>.
createParentNodesSource (function(TDataItem):TParentDataItem, function(TParentDataItem, Object):Object?)in NodesSourceRegisters a collection of data items functioning as implicit parent entities for the NodeCreator<TParentDataItem> of the returned NodesSource<TParentDataItem>.

Method Parameters

addNodesSource (TDataItem[] | Iterable<TDataItem> | Map<any,TDataItem> | { [id: string]: TDataItem; } | (() => GeneratorLike<TDataItem>, NodesSource<TDataItem>)in GraphBuilderBinds a collection of data items to the given nodesSource.
setData (NodesSource<TDataItem>, TDataItem[] | Iterable<TDataItem> | Map<any,TDataItem> | { [id: string]: TDataItem; } | (() => GeneratorLike<TDataItem>)in GraphBuilderBinds a new data collection to a NodesSource<TDataItem>, replacing the old one.
addChildNodesSource (function(TDataItem):Object, NodesSource<TChildDataItem>)in NodesSourceBinds a collection of child data items to the given childNodesSource.
addParentNodesSource (function(TDataItem):TParentDataItem, NodesSource<TParentDataItem>)in NodesSourceBinds a provider for parents data items to the given nodeSource.