An interface for instances that can provide an ILookup capability for a given object.
Inheritance Hierarchy
IContextLookup
Remarks
This is useful in the case where lookup functionality is not intrinsic to an item or where an existing object cannot implement the interface or when an item needs to be decorated externally with new lookup functionality.
Type Details
- yFiles module
- core
See Also
Methods
Tries to create or retrieve an implementation of the given type for a given item.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- item - any
- the item to look up a type for
- type - Constructor
- the type to look up
Returns
- ↪Object?
- an implementation or
null
See Also
Constants
An ILookupContext
instance that always returns null
.