How to only show the close button for the focused tab?

I have a client-side Blazor app using the SfTab (v18).
How to only show the close button for the focused tab?

Thanks


3 Replies

AK Alagumeena Kalaiselvan Syncfusion Team May 6, 2020 06:44 AM UTC

Hi Nguyen, 

Greetings from Syncfusion support! 

We have validated your reported case and you can show the close button for focused tab alone by overriding the below css class in your sample. Refer the below code for that. 

<style> 
   .e-tab .e-tab-header.e-close-show .e-toolbar-item:not(.e-active) .e-icons.e-close-icon { 
        display: none !important; 
    } 
</style> 

Also, we have prepared a sample for your reference which can be downloaded from the below link. 


Kindly try out shared solution and get back to us, If you need further assistance. 

Regards 
Alagumeena.K 



NH Nguyen Huu May 6, 2020 11:34 AM UTC

Thanks it worked fine


VM Vengatesh Maniraj Syncfusion Team May 7, 2020 05:37 AM UTC

Hi Nguyen, 

You are most welcome. 

Please get in touch with us if you need any further assistance. 

Regards, 
Vengatesh  


Loader.
Up arrow icon