TextWrapSettings

Configures text wrapping behavior in grid cells and headers. When enabled, text content wraps automatically to fit within the available cell width, ensuring full visibility.

Props

The following table outlines the props for the TextWrapSettings:

NameTypeDefaultDescription
enabled
boolean
false

Enables text wrapping in grid cells. When enabled, this property allows text in grid cells to wrap to multiple lines if it exceeds the column width. This is especially useful for columns containing lengthy content.

wrapMode
WrapMode | string
WrapMode.Both | 'Both'

The wrapMode property defines how the text in the grid cells should be wrapped. The available modes are:

  • Both: Wraps text in both the header and content cells.
  • Content: Wraps text in the content cells only.
  • Header: Wraps texts in the header cells only.