SortableListTItemOnUpdateJS Method

Handles a JavaScript-triggered update event by invoking the associated callback with the provided item indices.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
[JSInvokableAttribute]
public Task OnUpdateJS(
	int oldIndex,
	int newIndex
)

Parameters

oldIndex  Int32
The original index of the item before the update. Must be a valid index within the list.
newIndex  Int32
The new index of the item after the update. Must be a valid index within the list.

Return Value

Task
A task that represents the asynchronous operation of invoking the update callback.

Remarks

This method is intended to be called from JavaScript via Blazor's JS interop. The callback is only invoked if it has been assigned.

See Also