Search results

WrapMode API in JavaScript Grid API control

Defines the wrap mode.

  • Both - Wraps both header and content.
  • Header - Wraps header alone.
  • Content - Wraps content alone.
<div id='Grid'></grid>
import { Grid } from '@syncfusion/ej2-grids';
import { data } from './datasource.ts';
let grid: Grid = new Grid({
    dataSource: data,
    allowTextWrap: true,
    textWrapSettings: { wrapMode: 'Both' },
});
grid.appendTo('#Grid');