Gets an object that allows showing Spotfire controls and other UI component, like context menus, tooltips, etc.
Gets an object that provides access to Spotfire document.
Get mod metadata - name, id, version, etc.
Gets an object representing the content in the Mod Visualization and provides methods to read and/or modified it.
Creates a Reader that can be used to access content specified by the Readable parameters. The reader is responsible for combining multiple Readables and scheduling a callback to be invoked when one or more of the Readables have changed.
Get the Mod's render context. This function should be invoked as soon as possible in the initialize callback.
If this method is called in the initialize callback, Spotfire will wait for the Mod to finish rendering during an export. The export will be made once the RenderContext.signalRenderComplete method has been called.
If this method is not called in the initialize callback, Spotfire will not wait for the Mod to finish rendering during an export. Instead, the Mod will be automatically exported after one second.
Provides access to the ModProperty with the specified name
.
Performs a set of synchronous modifications in an explicit transaction to the Spotfire document.
Use of this method is only needed to make sure that a set of modifications are done as one transaction, thereby resulting in one undo step. Modifications done outside of a transaction action callback will be grouped together in an implicit transaction.
callback with a set of modifications
Optional
onComplete: ((error?: string) => void)optional callback that is called when the transaction is committed or rolled back. When there is an error argument in the callback the transaction was rolled back.
Optional
error: string
Represents the entire Mod API and exposes methods for interacting with and reading data from the Mod Visualization and the Spotfire document.
Reading content from the Mod is made by using either of the methods Reader.subscribe or Reader.once on an instance of a Reader.