Optionaloptions: { pageIndex?: number } & {OptionalpageIndex?: numberThe page index of the page that should be made visible when triggering this action.
pageIndex is zero-based and has a maximum value of totalPageCount - 1.
OptionalsubActions?: NutrientViewer.Immutable.List<NutrientViewer.Actions.Action> | nullThe page index of the page that should be made visible when triggering this action.
pageIndex is zero-based and has a maximum value of totalPageCount - 1.
OptionalsubActions can be chained by adding them to this immutable List.
Returns a new instance of this Record type with all values set to their default values.
Returns a new instance of this Record type with the value for the specific key set to its default value.
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
OptionalnotSetValue: unknownDeeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Shallowly converts this Record to equivalent native JavaScript Object.
PDF action to go to a destination (page) in the current document.
It is an Immutable.Record and thus can be updated using
set(key, value), for example:action.set("pageIndex", 2);.A GoToAction can define a different
pageIndexin the same document. When clicking on it, we will update the scroll position to make the page visible. We will not update the zoom level in that case.Example
Create a new GoToAction