Search results

Tooltip for Button

Tooltip can be shown on Button hover and it can be achieved by setting title attribute.

The following snippets illustrates how to show tooltip on Button hover.

razor
tooltip.cs
@Html.EJS().Button("primarybtn").Title("Primary Button").Content("Button").IsPrimary(true).Render()

<style>

button {
  margin: 25px 5px 20px 20px;
}

</style>
public ActionResult tooltip()
{
    return View();
}