Add link to a button in Vue Button component

27 Feb 20231 minute to read

The appearance of the Button can be changed like a link by e-link class using cssClass property and link navigation can be handled in Button click.

In the following example, link is added in Button click by using method.

<ejs-button cssClass='e-link' v-on:click.native='btnClick'>Button</ejs-button>

import Vue from 'vue';
import { ButtonPlugin } from '@syncfusion/ej2-vue-buttons';
import { enableRipple } from '@syncfusion/ej2-base';


export default {
    methods : {
        btnClick: function(event) {

@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';

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