Skip to content

Commit ee375c0

Browse files
993664: Updated the customization UG content and samples in Blazor Pager Component
1 parent 8039d50 commit ee375c0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

blazor/pager/customization.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
---
22
layout: post
33
title: Customization in Blazor Pager Component | Syncfusion
4-
description: Checkout here and learn about how to customize the elements of Syncfusion Blazor Pager component and much more.
4+
description: Learn how to customize the Syncfusion Blazor Pager component, including custom text and styling options.
55
platform: Blazor
66
control: Pager
77
documentation: ug
88
---
99

1010
# Customization in Pager Component
1111

12+
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Pager component provides options to customize its appearance and behavior. Customization can include modifying numeric item text and applying custom styles through CSS classes.
13+
1214
## Custom text for numeric items
1315

14-
The Pager component provides an option to define custom text and it is added as a prefix for numeric items. This can be achieved by using the [NumericItemPrefix](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfPager.html#Syncfusion_Blazor_Navigations_SfPager_NumericItemPrefix) property.
16+
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Pager component allows adding a custom prefix to numeric items using the [NumericItemPrefix](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfPager.html#Syncfusion_Blazor_Navigations_SfPager_NumericItemPrefix) property. This property accepts a string value that appears before each numeric item in the pager.
1517

1618
```csharp
1719

1820
@using Syncfusion.Blazor.Navigations
1921

20-
<SfPager TotalItemsCount="75" NumericItemPrefix="PageNo" PageSize="5" NumericItemsCount="2">
22+
<SfPager TotalItemsCount="75"
23+
PageSize="5"
24+
NumericItemsCount="2"
25+
NumericItemPrefix="PageNo">
2126
</SfPager>
2227

2328
```
2429

2530
![Blazor Pager with Custom Text](./images/blazor-pager-custom-text.png)
2631

27-
## Custom CSS
28-
29-
To modify the Pager's appearance, you need to override the default CSS of the Pager. This can be achieved by using the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfPager.html#Syncfusion_Blazor_Navigations_SfPager_CssClass) property.
32+
## Apply custom CSS
3033

31-
In the following sample, the value for the `CssClass` property is set as custom CSS, and this root class is used to customize the Pager appearance.
34+
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Pager component supports customizing its appearance by applying custom CSS classes. This customization is enabled through the [CssClass](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Navigations.SfPager.html#Syncfusion_Blazor_Navigations_SfPager_CssClass) property. Assign a class name to this property and define the required styles in the CSS file.
3235
3336
```csharp
3437

0 commit comments

Comments
 (0)