public static void AddDeleteButton <T>(this IList <ToolbarItem> items, IEntityDetailComponent <T> component) where T : ContentBase { items.Add(new ToolbarItem("Delete", Color.Danger, () => component.DeleteAsync())); }
public static void AddUpdateButton <T>(this IList <ToolbarItem> items, IEntityDetailComponent <T> component) where T : ContentBase { items.Add(new ToolbarItem("Update", Color.Success, () => component.UpdateAsync())); }