An interface for instances that can provide a ILookup capabilities 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
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.IContextLookup
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.
Returns
- ↪Object
- an implementation or
null
See Also
Constants
An ILookupContext
instance that always returns null
.
Static Methods
Creates an implementation of the interface IContextLookup by using the given function as implementation for its contextLookup method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- contextLookup - function(any, Class):any
- A function for IContextLookup's single abstract method contextLookup.
Returns
- ↪IContextLookup
- An instance of the IContextLookup interface based on the given function.