WarUI

Text Editor

GRID-A14-F04P0baselinePlanned

The default single-line text editor, with options for max length, trimming, placeholder and input pattern. Most editable columns are plain text, so this editor sets the common behaviour all other editors follow.

Planned. This page shows the specification from issue #193. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A Customer grid with Name (text, maxLength 80) and Code (text, uppercase pattern) columns.

Expected behavior

The editor accepts no more than maxLength characters. Leading and trailing spaces are removed on commit when trim is on. Values in the Code column are converted to uppercase on commit.

Planned API surface

editor: 'text'editorParams.maxLengtheditorParams.trimeditorParams.placeholdereditorParams.inputModeeditorParams.pattern

Acceptance criteria

  • Typing past maxLength is blocked, and pasted text is truncated to maxLength. (pending)
  • With trim enabled, the committed value has no leading or trailing whitespace. (pending)
  • The placeholder shows only when the editor is empty. (pending)
  • The editor fills the cell's bounds without changing the row height. (pending)