new PartRetriever()
The base class for PartRetrievers
Methods
-
setCustomHeaders(headers)
-
Sets custom HTTP headers that will be sent with XOD part requests.
Parameters:
Name Type Description headersobject An object with the properties and values being the header names and values that will be set. e.g. { 'MyCustomHeader': 'MyCustomValue'} -
setErrorCallback(callback)
-
Sets a function to be called if there is an error loading the document or retrieving a part.
Parameters:
Name Type Description callbackfunction The callback to handle the error -
setWithCredentials(withCredentials)
-
Sets withCredentials on xhr requests for the document.
Parameters:
Name Type Description withCredentialsboolean