Protected
constructorListen for events on this object.
the type of the data that the event will provide
the name of the event to listen for
a function to call when the event occurs
Returns a cleanup function.
Listen for events on this object.
Returns a cleanup function.
Gets the data currently visible in this viewport
Promise of TableData.
Removes an event listener added to this table.
Changes the rows and columns set on this viewport. This cannot be used to change the update interval.
Optional
columns: Column[]Optional
updateIntervalMs: numberOptional
isReverseViewport: boolean
This object serves as a "handle" to a subscription, allowing it to be acted on directly or canceled outright. If you retain an instance of this, you have two choices - either only use it to call
close()
on it to stop the table's viewport without creating a new one, or listen directly to this object instead of the table for data events, and always callclose()
when finished. Calling any method on this object other than close() will result in it continuing to live on aftersetViewport
is called on the original table, or after the table is modified.