The shape of EditMode.args, the mode-specific payload.
OptionalargsMode-specific payload for consumers that need more than the EditMode.key — for example a handle to the live editor during a cell edit, or flags describing a clipboard operation.
OptionalcancelRuns when the user cancels the mode from chrome (the status bar's ✕ beside the description); the publisher ends the mode. Supply the same action the mode's Escape takes. When omitted, the chrome offers no cancel for the mode.
OptionalcursorCursor to show while the mode is active (any CSS cursor value), e.g. 'crosshair' for a fill
drag. Applied by whichever surface owns the pointer.
OptionaldescriptionHuman-readable label for the mode, shown to the user (e.g. in the status bar). When omitted, the UI falls back to its idle text.
OptionaldoneRuns when the user completes the mode from chrome (the status bar's ✓ beside the description): the publisher performs the mode's action and ends the mode. Supply the same action the mode's Enter takes (commit an edit, paste a marquee). When omitted, the chrome offers no complete for the mode; a gesture that completes on its own release (a drag) has none.
Stable identifier for the kind of interaction (e.g. 'edit', 'copy', 'fill'). Consumers
switch on this to recognize a mode they care about.
OptionalonInvoked when this mode is replaced (or cleared), receiving the incoming mode or null. Use it
to tear down anything the mode set up — e.g. a copy mode clears the clipboard when it is
superseded.
A single entry on the application's edit-mode bus: the interaction currently in effect — for example editing a cell, a copy/cut marquee, or a fill/drag gesture.
Remarks
Exactly one
EditModeis active at a time, or none (idle). A feature signals that its interaction has begun by publishing anEditMode, and clears it when the interaction ends. See EditModeHandler for how the bus is read and written.