Used by IEditLabelHelper to determine the kind of action to handle.
Type Details
- yFiles module
- view
Constants
A new label is about to be created.
Remarks
initialize has to provide suitable defaults for LabelEditingEventArgs's style and layoutParameter.
finish has to actually add the label to the provided LabelEditingEventArgs' owner using the LabelEditingEventArgs' properties.
A label should be created via Drag and Drop.
Remarks
This action is used by LabelDropInputMode.
If the current owner is not a valid drop target, initialize may mark the LabelEditingEventArgs as canceled to prevent label creation.
finish has to actually add the label to the provided LabelEditingEventArgs' owner.
An existing label is about to be edited.
Remarks
finish should at least change the label's text.
initialize may provide values for other label properties to be changed in addition to the label's text.
A label has been pasted using the GraphClipboard.
Remarks
With this action, owner is the new owner of the label whereas label is the original label.
initialize is called for newly copied labels during paste . Implementations might, but do not need to, provide custom styles or layout parameters for the new label.
Note that pasting a label to another owner might require to provide a suitable ILabelModelParameter for the new owner.
Method cancel is called immediately after initialize, finish is never called.
An existing label should be removed.
Remarks
true
.Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - LabelEditingAction
- The value to convert to an enum constant.
Returns
- ↪LabelEditingAction
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - LabelEditingAction
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.