Enable rtl in Vue Switch component
8 Aug 20231 minute to read
Switch component has RTL support. This can be achieved by setting enableRtl
as true
.
The following example illustrates how to enable right-to-left support in Switch component.
<template>
<ejs-switch enableRtl=true></ejs-switch>
</template>
<script>
import Vue from 'vue';
import { SwitchPlugin } from "@syncfusion/ej2-vue-buttons";
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
Vue.use(SwitchPlugin);
export default {}
</script>
<style>
@import "../node_modules/@syncfusion/ej2-base/styles/fabric.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/fabric.css";
.e-switch-wrapper {
margin: 18px;
}
</style>