<SfToolbar>
<ToolbarItems>
<ToolbarItem Text="Cut" Visible="@ShowItem"></ToolbarItem>
<ToolbarItem Text="Copy"></ToolbarItem>
<ToolbarItem Text="Paste"></ToolbarItem>
<ToolbarItem Text="Test"></ToolbarItem>
</ToolbarItems>
</SfToolbar>
@code{
public bool ShowItem = true;
protected override Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
ShowItem = !ShowItem; // To dynamically change the visibility
}
return base.OnAfterRenderAsync(firstRender);
}
} |
Please note that we have introduced several API break in this release. We would like you to review the breaking changes from the below location before you upgrade.
|