documentationfor yFiles for HTML 3.0.0.3

Usages of NodesSource

Method Return Values

createGroupNodesSource (TDataItem[] | Iterable<TDataItem> | Map<any,TDataItem> | { [id: string]: TDataItem; } | (() => Generator<TDataItem>, function(TDataItem, any):any, )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; } | (() => Generator<TDataItem>, function(TDataItem, any):any, )in GraphBuilderCreates a new NodesSource<TDataItem> and binds a collection of node data items to it.
createChildNodesSource (function(TDataItem):any, function(TChildDataItem, any):any?)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, any):any?)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; } | (() => Generator<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; } | (() => Generator<TDataItem>)in GraphBuilderBinds a new data collection to a NodesSource<TDataItem>, replacing the old one.
addChildNodesSource (function(TDataItem):any, 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 parent data items to the given nodeSource.