Skip to main content

Home > @jsplumbtoolkit/browser-ui > SaveOptions

SaveOptions interface

Options for a save via ajax.

Signature:

export interface SaveOptions extends ExportOptions 

Extends: ExportOptions

Properties

PropertyModifiersTypeDescription
error?(e: any, status?: any) => any(Optional) Optional callback to execute if there was an error saving the data.
headers?Record<string, string>(Optional) Optional headers to set on the ajax request. By default, the Toolkit will send a Content-Type:"application/json" header. If you provide your own headers this header will continue to be sent, unless of course you override it.
success?(r: any) => any(Optional) Optional callback to execute once the data has saved successfully.
urlstringURL to POST data to. Required.