(i => { });
+
+ ///
+ ///
+ ///
+ public Action PageItemsChangeCallback { get; set; } = new Action(() => { });
///
///
///
protected void MovePrev()
{
- if (PageIndex > 1) ClickPageCallback?.Invoke(PageIndex - 1);
+ if (PageIndex > 1) ClickPageCallback(PageIndex - 1);
}
///
@@ -47,7 +62,17 @@ namespace Bootstrap.Admin.Components
///
protected void MoveNext()
{
- if (PageIndex < PageCount) ClickPageCallback?.Invoke(PageIndex + 1);
+ if (PageIndex < PageCount) ClickPageCallback(PageIndex + 1);
+ }
+
+ ///
+ ///
+ ///
+ ///
+ protected void ClickItem(int pageItems)
+ {
+ PageItems = pageItems;
+ PageItemsChangeCallback();
}
}
}
diff --git a/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor b/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor
index 344b0355..a6f12c24 100644
--- a/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor
+++ b/src/admin/Bootstrap.Admin/Pages/Admin/Dicts.razor
@@ -60,7 +60,7 @@
@context.Define |
-
+