public async Task UpdateAsync() { await Sortable.ClearAsync(); Sortable = new SortableJS <TItem>(jSRuntime); Sortable.SetData(Items); ForceReDraw = true; await InvokeAsync(StateHasChanged); }
protected override Task OnInitializedAsync() { if (Id == null) { Id = Guid.NewGuid().ToString(); } Sortable = new SortableJS <TItem>(jSRuntime); Sortable.SetData(Items); return(base.OnInitializedAsync()); }