documentationfor yFiles for HTML 3.0.0.3

Usages of LabelCreator

Properties

labelCreatorin LabelsSourceGets or sets the LabelCreator<TDataItem> for this source, which can be used to adjust the creation behavior.

Method Return Values

createLabelBinding (function(TDataItem):string?, )in EdgeCreatorCreates a binding for labels that will be added to edges created by this instance.
createLabelBinding (function(TDataItem):string?, )in NodeCreatorCreates a binding for labels that will be added to nodes created by this instance.

Method Parameters

LabelsSource (LabelCreator<TDataItem>, function(TDataItem, any):any?)in LabelsSourceCreates a new source with the given labelCreator.