Search results

Enable ripple in ASP.NET Core ButtonGroup control

18 Jan 2022 / 1 minute to read

Ripple can be enabled by importing rippleEffect method from ej2-base and initialize rippleEffect with .e-btn-group element, and selector as e-btn.

The following example illustrates how to enable ripple for ButtonGroup.

Copied to clipboard
<div class='e-btn-group'>
    <ejs-button id="html" content="HTML"></ejs-button>
    <ejs-button id="css" content="CSS"></ejs-button>
    <ejs-button id="javascript" content="JavaScript"></ejs-button>
    var button = document.querySelector('.e-btn-group');
    ej.base.rippleEffect(button, { selector: 'e-btn' });
Copied to clipboard
public ActionResult Index()
            return View();