An item with a tag property that can store an arbitrary object.
Inheritance Hierarchy
ITagOwner
Remarks
The object stored by implementations of this interface is usually a user-defined object. yFiles own implementations don't depend on this object, they just provide the storage for the tag object.
Type Details
- yFiles module
- core
Properties
Gets or sets the tag object associated with this item instance.
Remarks
The tag is an optional user-defined object which can be used to store arbitrary data related to this item. The item itself just provides the storage for the object.
Property Value
The user object associated with this item instance.
Examples
owner.tag = newTag
const tag = owner.tag