documentationfor yFiles for HTML 3.0.0.3

Usages of LabelsSource

Method Return Values

createLabelsSource (function(TDataItem):any, function(TLabelDataItem, any):any?, )in EdgeCreatorCreates a new source of label data items that will be added to edges created by this instance.
createLabelsSource (function(TDataItem):any, function(TLabelDataItem, any):any?, )in NodeCreatorCreates a new source of label data items that will be added to nodes created by this instance.

Method Parameters

addLabelsSource (function(TDataItem):any, LabelsSource<TLabelDataItem>)in EdgeCreatorAdds the given labelsSource to this instance.
addLabelsSource (function(TDataItem):any, LabelsSource<TLabelDataItem>)in NodeCreatorAdds the given labelsSource to this instance.