Definition
Assembly: CloudNimble.BlazorEssentials.dll Namespace: CloudNimble.BlazorEssentials.Navigation Inheritance: System.ObjectSyntax
Constructors
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
jsRuntime | Microsoft.JSInterop.IJSRuntime | - |
.ctor Inherited
Inherited from
objectSyntax
Methods
Back
This asynchronous method goes to the previous page in session history.Syntax
Returns
Type:System.Threading.Tasks.ValueTask
Count
Returns an Integer representing the number of elements in the session history, including the currently loaded page.Syntax
Returns
Type:System.Threading.Tasks.ValueTask<int>
CurrentState
Returns an T type representing the state at the top of the history stack.Syntax
Returns
Type:System.Threading.Tasks.ValueTask<T>
Type Parameters
T- The type of the state data
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
Forward
This asynchronous method goes to the next page in session history.Syntax
Returns
Type:System.Threading.Tasks.ValueTask
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetScrollRestoration
Allows web applications to explicitly get default scroll restoration behavior on history navigation.Syntax
Returns
Type:System.Threading.Tasks.ValueTask<CloudNimble.BlazorEssentials.Navigation.ScrollRestorationType>
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
Go
Asynchronously loads a page from the session history, identified by its relative location to the current page.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
index | int | The index to move back or forward |
Returns
Type:System.Threading.Tasks.ValueTask
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
PushState
Pushes the given data onto the session history stack.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
state | T | The state of the data |
url | string | The url to navigate |
Returns
Type:System.Threading.Tasks.ValueTask
Type Parameters
T- The type of the state data
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ReplaceState
Updates the most recent entry on the history stack.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
state | T | The state of the data |
url | string | The url to navigate |
Returns
Type:System.Threading.Tasks.ValueTask
Type Parameters
T- The type of the state data
SetScrollRestoration
Allows web applications to explicitly set default scroll restoration behavior on history navigation. This property can be either auto or manual.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
scrollRestorationType | CloudNimble.BlazorEssentials.Navigation.ScrollRestorationType | - |
Returns
Type:System.Threading.Tasks.ValueTask
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?