NavigationHistory Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
Full Usage:
this.canGoBack ()
Returns: bool
Modifiers: inline |
Whether the browser can go back to previous web page.
|
Full Usage:
this.canGoForward ()
Returns: bool
Modifiers: inline |
Whether the browser can go forward to next web page.
|
Full Usage:
this.canGoToOffset offset
Parameters:
int
Returns: bool
Modifiers: inline |
Whether the web page can go to the specified relative offset from the current entry.
|
Full Usage:
this.clear ()
Modifiers: inline |
Clears the navigation history. |
Full Usage:
this.getActiveIndex ()
Returns: int
Modifiers: inline |
The index of the current page, from which we would go back/forward or reload.
|
|
WebContents complete history.
|
Full Usage:
this.getEntryAtIndex index
Parameters:
int
Returns: NavigationEntry
Modifiers: inline |
Navigation entry at the given index.If index is out of bounds (greater than history length or less than 0), null will be returned.
|
Full Usage:
this.goBack ()
Modifiers: inline |
Makes the browser go back a web page. |
Full Usage:
this.goForward ()
Modifiers: inline |
Makes the browser go forward a web page. |
Full Usage:
this.goToIndex index
Parameters:
int
Modifiers: inline |
Navigates browser to the specified absolute web page index.
|
Full Usage:
this.goToOffset offset
Parameters:
int
Modifiers: inline |
Navigates to the specified relative offset from the current entry.
|
Full Usage:
this.length ()
Returns: int
Modifiers: inline |
History length.
|
Full Usage:
this.removeEntryAtIndex index
Parameters:
int
Returns: bool
Modifiers: inline |
Removes the navigation entry at the given index. Can't remove entry at the "current active index".Whether the navigation entry was removed from the webContents history.
|
Full Usage:
this.restore (entries, ?index)
Parameters:
NavigationEntry[]
?index : int
Returns: Promise<unit>
Modifiers: inline |
the promise will resolve when the page has finished loading the selected navigation entry (see did-finish-load), and rejects if the page fails to load (see did-fail-load). A noop rejection handler is already attached, which avoids unhandled rejection errors.
|
fable-electron-docs-api