This section briefly explains about how to include a simple ProgressButton in your ASP.NET MVC application. You can refer ASP.NET MVC Getting Started documentation page for introduction part of the system requirements and configure the common specifications.
We are going to render ProgressButton
component in Index.cshtml page.
@Html.EJS().ProgressButton("element").Content("Spin Left").Render()
Output be like the below.
After successful compilation of your application, simply press F5
to run the application.
The following example shows a basic ProgressButton component.
@Html.EJS().ProgressButton("element").Content("Spin Left").Render()
public ActionResult Default()
{
return View();
}
ProgressButton supports different styles, types and sizes like
Button
. In addition, it also supporttop
andbottom
position of the icon.
You can enable the background filler UI by setting the enableProgress
property to true
.
@Html.EJS().ProgressButton("spinleft").Content("Spin Left").EnableProgress(true).Render()
public ActionResult Default()
{
return View();
}