public async Task Down() { if (ListExtViewModel.CurrentItem != null) { await ListExtViewModel.Down(ListExtViewModel.CurrentItem); StateHasChanged(); } }
public async Task AddFolder() { await ListExtViewModel.AddItem(new ListItem() { IsCat = true, Exp = true, Title = newItem }); newItem = string.Empty; await Focus(editNameRef); }
public async Task AddItem() { await ListExtViewModel.AddItem(new ListItem() { Title = newItem }); newItem = string.Empty; await Focus(editNameRef); }
public void ItemSelected(ListItem item, object checkedValue) { ListExtViewModel.SelectItem(item, (bool)checkedValue); }
public async Task ToggleIsDone(ListItem item) { await ListExtViewModel.ToggleIsDone(item); }
public void SetCurrent(ListItem item) { ListExtViewModel.SetCurrent(item); }
public async Task Delete(ListItem item) { await ListExtViewModel.DeleteItem(item); }
public async Task ExpandFolder(ListItem item) { await ListExtViewModel.ExpandItem(item); }
protected override async Task OnInitializedAsync() { await ListExtViewModel.Load(); ListExtViewModel.StateChanged += new EventHandler(OnStateChanged); }