I

ITagOwner

An item with a tag property that can store an arbitrary object.
Inheritance Hierarchy

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.

Members

No filters for this type

Properties

Gets or sets the tag object associated with this item instance.
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.
abstract

Property Value

The user object associated with this item instance.

Examples

Setting a model item's tag
owner.tag = newTag
Getting the tag from a model item
const tag = owner.tag

See Also

Tags are presented in detail in the section The Graph Model.
Developer's Guide