documentationfor yFiles for HTML 2.6

Usages of LabelsSource

Method Return Values

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

Method Parameters

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