Hi Amanda,
You can hide the close icon for the first Tab alone by using
the below code snippet.
Code snippet:
|
<SfTab ID="SfTab" Height="320" ShowCloseButton="true">
<TabItems>
<TabItem Content="Content 1">
<ChildContent>
<TabHeader Text="Header 1"></TabHeader>
</ChildContent>
</TabItem>
<TabItem Content="Content 2">
<ChildContent>
<TabHeader Text="Header 2"></TabHeader>
</ChildContent>
</TabItem>
<TabItem Content="Content 3">
<ChildContent>
<TabHeader Text="Header 3"></TabHeader>
</ChildContent>
</TabItem>
</TabItems>
</SfTab>
<style>
#e-item-SfTab_0 .e-close-icon {
display: none;
}
</style>
|
Note: The solution will work in both server and WASM porject.
Kindly try the above solution and let us know if this is
helpful.
Regards,
Balasubramanian S