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 is a visual indicator that shows whether a row or column can be expanded or collapsed. In some situations, you might want to customize this drill icon to personalize the UI appearance and improve the presentation of your data. In this article, we will discuss how to customize the drill icon in the Blazor Pivot Table.

Customizing the drill icon

To customize the drill icon, you can target the built-in CSS classes associated with the pivot table drill icon. Below is a CSS code snippet that could be utilized 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, we have targeted the .e-pivotview .e-expand class for the expand icon, whereas the .e-pivotview .e-collapse class for the collapse icon. Subsequently, we have used the content property to incorporate the Unicode characters for assigning new icons. The Unicode character \e22c (i.e., (+) sign) is used for the expand icon, and \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 meet your specific requirements.

The following GIF image, which portrays the results of the code snippet mentioned above,

GIF

KB-15080.gif

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

Conclusion

I 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 feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Blazor Pivot Table example to understand how to create and manipulate data.

For current customers, you can check out our components on the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries 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