Value parsers for edit and paste
`parser` converts user input text from editing or clipboard paste into the typed stored value. It can reject invalid input with a message. Built-in types ship locale-aware parsers, for example '1.234,5' in de-DE.
Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An editable grid with number, currency and date columns. The locale is de-DE.
Expected behavior
Valid input is parsed and stored. Invalid input is flagged with an inline message and the old value is kept by default. Pasting multiple cells parses each cell independently.
Planned API surface
parserParseResultvalueSetteronCellValueChangeonParseErrorpasteBehaviorAcceptance criteria
- A parser returns {ok:true,value} or {ok:false,message}. (pending)
- A parse failure never mutates the row. (pending)
- Parse errors fire onParseError with the cell coordinates. (pending)
- Built-in parsers round-trip their own formatter output for all supported locales. (pending)