WarUI

Custom Editor Contract

GRID-A14-F20P1baselinePlanned

A public, framework-neutral interface for building custom editors: mount, focus, getValue, isPopup and destroy. Teams can plug in a color picker, a rating widget or a domain-specific input, and it works the same as the built-in editors.

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 tokens grid with a custom color editor and a 5-star rating editor.

Expected behavior

Custom editors open, commit and cancel in the same way as built-in editors. The rating editor accepts number keys from 1 to 5. Validation and dirty tracking apply automatically.

Planned API surface

columns[].editor: EditorFactoryEditorContexteditor.mount(el, ctx)editor.getValue()editor.focus()editor.isPopup()editor.isCancelAfterEnd()editor.destroy()ctx.commit()ctx.cancel()

Acceptance criteria

  • The grid calls mount, focus, getValue and destroy in the documented order. (pending)
  • destroy is always called, even when the edit is cancelled or the row is unmounted. (pending)
  • Popup editors are positioned and dismissed by the grid. (pending)
  • Wrapper examples exist for React, Vue, Angular and vanilla JavaScript. (pending)