SortableListTItemOnUpdateJS Method
Handles a JavaScript-triggered update event by invoking the associated callback with the provided item indices.
Namespace: BlazorBootstrapAssembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
[JSInvokableAttribute]
public Task OnUpdateJS(
int oldIndex,
int newIndex
)
- 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.
TaskA task that represents the asynchronous operation of invoking the update callback.
This method is intended to be called from JavaScript via Blazor's JS interop. The callback is
only invoked if it has been assigned.