BookmarksManager class
Manages report bookmarks.
Methods
apply(string) | Apply bookmark by name.
|
apply |
Apply bookmark state.
|
capture(ICapture |
Capture bookmark from current state.
|
get |
Gets bookmarks that are defined in the report.
|
play(Bookmarks |
Play bookmarks: Enter or Exit bookmarks presentation mode.
|
Method Details
apply(string)
Apply bookmark by name.
bookmarksManager.apply(bookmarkName)
function apply(bookmarkName: string): Promise<IHttpPostMessageResponse<void>>
Parameters
- bookmarkName
-
string
The name of the bookmark to be applied
Returns
Promise<IHttpPostMessageResponse<void>>
applyState(string)
Apply bookmark state.
bookmarksManager.applyState(bookmarkState)
function applyState(state: string): Promise<IHttpPostMessageResponse<void>>
Parameters
- state
-
string
A base64 bookmark state to be applied
Returns
Promise<IHttpPostMessageResponse<void>>
capture(ICaptureBookmarkOptions)
Capture bookmark from current state.
bookmarksManager.capture(options)
function capture(options?: ICaptureBookmarkOptions): Promise<IReportBookmark>
Parameters
- options
- ICaptureBookmarkOptions
Options for bookmark capturing
Returns
Promise<IReportBookmark>
getBookmarks()
Gets bookmarks that are defined in the report.
// Gets bookmarks that are defined in the report
bookmarksManager.getBookmarks()
.then(bookmarks => {
...
});
function getBookmarks(): Promise<IReportBookmark[]>
Returns
Promise<IReportBookmark[]>
play(BookmarksPlayMode)
Play bookmarks: Enter or Exit bookmarks presentation mode.
// Enter presentation mode.
bookmarksManager.play(BookmarksPlayMode.Presentation)
function play(playMode: BookmarksPlayMode): Promise<IHttpPostMessageResponse<void>>
Parameters
- playMode
- BookmarksPlayMode
Play mode can be either Presentation
or Off
Returns
Promise<IHttpPostMessageResponse<void>>