An interface for instances that can be used to chain lookup operations.
Remarks
Implementations will perform the lookup in the contextLookup method and delegate to the next implementation in the chain if they cannot satisfy the request.
Type Details
- yFiles module
- core
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
Defined in
This method is called by the framework to register the fallback lookup implementation that should be used during a call to contextLookup.
Remarks
If the implementation cannot satisfy the query, it will use the provided lookup context as a fallback. Note that implementations can also use the results returned by the next lookup and decorate it appropriately.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- next - IContextLookup
- The context to use as a fallback.