This section briefly explains about how to create a simple Button in your ASP.NET Core application. You can refer ASP.NET Core Getting Started documentation page for introduction part of the system requirements and configure the common specifications.
To create simple Button add the ejs-button
tag with id attribute as element
in your Index.cshtml page.
<ejs-button id="element" content="Button"></ejs-button>
public ActionResult Index()
{
return View();
}
Output be like the below.
After successful compilation of your application, simply press F5
to run the application.
The following example shows a default rendering of Button.
<ejs-button id="element" content="Button"></ejs-button>
public ActionResult Index()
{
return View();
}
To change the default Button to flat Button, set the cssClass
property to e-flat
.
<ejs-button id="element" cssClass="e-flat" content="Button"></ejs-button>
public ActionResult FlatButton()
{
return View();
}