Enable ripple in Vue Button group component

27 Feb 20231 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,

  <div id='app'>
    <div class='e-btn-group'>
import Vue from 'vue';
import { ButtonPlugin  } from '@syncfusion/ej2-vue-buttons';
import { enableRipple, rippleEffect } from '@syncfusion/ej2-base';

export default {
  name: 'app',
    var button= document.querySelector('.e-btn-group');
    rippleEffect(button, { selector: '.e-btn' });
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
  #app {
   margin: 20px;
  .e-btn-group {
    margin: 25px 5px 20px 20px;