Home > @i2analyze/notebook-sdk > commands > IRecordsContextEvents
commands.IRecordsContextEvents interface
A collection of methods that set up listeners to run in response to record changes in a particular context.
Signature:
interface IRecordsContextEvents
Introduced: version 1.0
Remarks
Commands that are surfaced in different areas of the user interface apply to different sets of records. For example, a command surfaced in a pop-up menu might operate on different records from the same command surfaced in the application ribbon. Listening for the "recordscontextchange" event allows commands to respond to record changes in the areas that they care about.
Methods
Method | Description |
---|---|
addEventListener(type, listener, options) | Adds an event listener for changes to the records in a particular context. |
removeEventListener(type, listener) | Removes an event listener for changes to the records in a particular context. |