From 5990869ff9aa1516aab495259e2ae380c07672e3 Mon Sep 17 00:00:00 2001 From: Brian MacKay Date: Wed, 16 Sep 2020 00:50:02 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 96339c4..c7f927f 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ Sortable List @code { SortableGroup MyGroup; - bool FirstRun = true; List items { get; set; } = new List { "T1", "T2", "T3" }; List resultsList { get; set; } = new List(); @@ -36,17 +35,17 @@ Sortable List return base.OnInitializedAsync(); } - protected async override Task OnAfterRenderAsync() + protected override async Task OnAfterRenderAsync(bool firstRender) { - if (FirstRun) + if (firstRender) { MyGroup.Sortable.SetData(items); - await MyGroup.Sortable.Create(MyGroup.Id, new SortableJsOptions + await MyGroup.Sortable.CreateAsync(MyGroup.Id, new SortableJsOptions { - group = "test", - animation = 100, + Group = "test", + Animation = 100, }); - FirstRun = false; + StateHasChanged(); } } From b1f9b1715020dc26819228d8d7b08e62d52c5073 Mon Sep 17 00:00:00 2001 From: John Bomhold Date: Sat, 6 Mar 2021 23:14:51 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7f927f..1cc094e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ BlazorSortableJS is a Blazor Wrapper over JavaScript [Sortable](https://github.c >Sortable is a JavaScript library for reorderable drag-and-drop lists. -This is a very early project. However, it does function and is very much usable. The user experience will get better over. +This is a very early project. However, it does function and is very much usable. The user experience will get better over time. [![NuGet Pre Release](https://img.shields.io/nuget/vpre/BlazorSortableJS.svg)](https://www.nuget.org/packages/BlazorSortableJS/) - _host.cshtml