Validated bulk paste and import
Validate pasted or imported blocks before they are applied. Developers choose to reject the whole block, accept only valid cells, or accept everything and flag the errors. This prevents large silent corruption.
Planned. This page shows the specification from issue #195. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid plus a sample clipboard text area with mixed valid and invalid data.
Expected behavior
The preview lists invalid cells with their reasons. The chosen policy is applied as one undo group. pasteResult reports the counts.
Planned API surface
pastePolicypasteValidationPreviewbeforePasteApplypasteResultAcceptance criteria
- Type coercion runs before validation. (pending)
- Async validators in a paste run in a bounded concurrency pool. (pending)
- The result counts the applied, skipped and flagged cells. (pending)
- Applied changes form one history group. (pending)