Articles in this section
Category / Section

How to Customize the Drill Icon in the Blazor Pivot Table?

2 mins read

Introduction

The drill icon in a pivot table serves as a visual indicator that indicates whether a row or column can be expanded or collapsed. In certain situations, you may want to customize this drill icon to enhance the UI’s appearance and improve the presentation of your data. This article discusses how to customize the drill icon in the Blazor Pivot Table component.

Customizing the drill icon

To customize the drill icon, target the built-in CSS classes associated with the pivot table’s drill icon. Below is a CSS code snippet you can use to customize the expand and collapse icons in a pivot table:

[Index.razor]

<style>
      .e-pivotview .e-expand::before {
        content: "\e22c" !important
      }
      .e-pivotview .e-collapse::before {
        content: "\e22b" !important
      }
</style>

In the code snippet above, you have targeted the .e-pivotview .e-expand class for the expand icon, whereas the .e-pivotview .e-collapse class for the collapse icon. The content property is used to incorporate the Unicode characters for assigning new icons. The Unicode character \e22c (i.e., (+) sign) is used for the expand icon, while \e22b (i.e., (-) sign) is used for the collapse icon. You can replace these characters with other Unicode characters from our Syncfusion Icons library to suit your specific requirements.

The following GIF image illustrates the results of the above code snippet.

GIF

KB-15080.gif

You can refer to this GitHub sample for a practical demonstration of this functionality.

Conclusion

We hope you enjoyed learning how to customize the drill icon in the Blazor Pivot Table.

You can also refer to our Blazor Pivot Table feature tour page to learn about its other groundbreaking features, documentation, and how to quickly get started with configuration specifications. You can also explore our Blazor Pivot Table example to understand how to create and manipulate data.

For current customers, our Blazor components are available on the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to evaluate our Blazor Pivot Table and other Blazor components.

If you have any questions or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, support portal, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied