Search results

WrapMode API in Vue Grid API component

Defines the wrap mode.

  • Both - Wraps both header and content.
  • Header - Wraps header alone.
  • Content - Wraps content alone.
<template>
    <ejs-grid :dataSource='data' :allowTextWrap='true' :textWrapSettings='textOption'> </ejs-grid>
</template>
<script>
import Vue from "vue";
import { GridPlugin } from "@syncfusion/ej2-vue-grids";
import { gridData } from './data';

Vue.use(GridPlugin);
export default {
  data() {
    return {
      data: gridData,
      textOption:  { wrapMode: 'Both' },
    };
  },
}
</script>