locateResource()
Locate a given resource and give you extra information such as absolute page index, relevant nodes, offset etc. This is most useful when you want to locate resources such as CFI.
This method is live, it will return an observable that emits every time the reader layout.
Reference
locateResource(resource, options)
Parameters
resource
: An object or array of objects that extendsLocatableResource
.options?
:mode?:
"shallow" | "load" : Defaultload
. Shallow means that the item will not be loaded if needed, load will force load an item. By using shallow you avoid loading documents excessively but you will only get the values as precise as possible with the current reader state.
Returns
Or if you passed an array of resources
An observable containing the initial resources and their consolidated metadata.
Last updated
Was this helpful?