BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@page "/ButtonSample"
@using Syncfusion.EJ2.Blazor.Buttons
<EjsButton @ref="ToggleBtn" onclick="onToggleClick" CssClass="e-flat" IsToggle="true" IsPrimary="true" Content="@Content"></EjsButton>
@code {
EjsButton ToggleBtn;
public string Content = "Play";
private void onToggleClick(UIMouseEventArgs args)
{
if (ToggleBtn.Content == "Play")
{
this.Content = "Pause";
}
else
{
this.Content = "Play";
}
}
}
@using Syncfusion.EJ2.Blazor.Buttons
<EjsButton CssClass="e-flat" IsToggle="true" IsPrimary="true" Content="@Content" @ref="ToggleBtn" @ref:suppressField @onclick="onToggleClick"></EjsButton>
@code {
EjsButton ToggleBtn;
public string Content = "Play";
private void onToggleClick(UIMouseEventArgs args)
{
if (ToggleBtn.Content == "Play")
{
this.Content = "Pause";
}
else
{
this.Content = "Play";
}
}
} |