5.0
API
Types
Behavior

Definition

type Behavior = {
  id: BehaviorId;
 
  handlePointerDown?: PointerEventHandler;
  handlePointerEnter?: PointerEventHandler;
  handlePointerMove?: PointerEventHandler;
  handlePointerLeave?: PointerEventHandler;
  handlePointerUp?: PointerEventHandler;
  handlePointerHold?: PointerHoldEventHandler;
 
  handlePointerDownTouch?: PointerEventHandler;
  handlePointerMoveTouch?: PointerEventHandler;
  handlePointerEnterTouch?: PointerEventHandler;
  handlePointerUpTouch?: PointerEventHandler;
  handlePointerHoldTouch?: PointerHoldEventHandler;
 
  handleFocus?: FocusEventHandler;
 
  handleDoubleClick?: MouseEventHandler;
 
  handleKeyDown?: KeyboardEventHandler;
  handleKeyUp?: KeyboardEventHandler;
 
  handleCompositionStart?: CompositionEventHandler;
  handleCompositionUpdate?: CompositionEventHandler;
  handleCompositionEnd?: CompositionEventHandler;
 
  handleCut?: ClipboardEventHandler;
  handleCopy?: ClipboardEventHandler;
  handlePaste?: ClipboardEventHandler;
 
  handleContextMenu?: MouseEventHandler;
};

Properties

NameTypeDescription
idBehaviorId"Default" | "CellSelection" | "ColumnReorder" | "RowReorder" | "ResizeColumn" | "FillHandle"
handlePointerDownPointerEventHandlerHandler for pointer down events.
handlePointerEnterPointerEventHandlerHandler for pointer enter events.
handlePointerMovePointerEventHandlerHandler for pointer move events.
handlePointerLeavePointerEventHandlerHandler for pointer leave events.
handlePointerUpPointerEventHandlerHandler for pointer up events.
handlePointerHoldPointerHoldEventHandlerHandler for pointer hold events.
handlePointerDownTouchPointerEventHandlerHandler for pointer down touch events.
handlePointerMoveTouchPointerEventHandlerHandler for pointer move touch events.
handlePointerEnterTouchPointerEventHandlerHandler for pointer enter touch events.
handlePointerUpTouchPointerEventHandlerHandler for pointer up touch events.
handlePointerHoldTouchPointerHoldEventHandlerHandler for pointer hold touch events.
handleFocusFocusEventHandlerHandler for focus events.
handleDoubleClickMouseEventHandlerHandler for double click events.
handleKeyDownKeyboardEventHandlerHandler for key down events.
handleKeyUpKeyboardEventHandlerHandler for key up events.
handleCompositionStartCompositionEventHandlerHandler for composition start events.
handleCompositionUpdateCompositionEventHandlerHandler for composition update events.
handleCompositionEndCompositionEventHandlerHandler for composition end events.
handleCutClipboardEventHandlerHandler for cut events.
handleCopyClipboardEventHandlerHandler for copy events.
handlePasteClipboardEventHandlerHandler for paste events.
handleContextMenuMouseEventHandlerHandler for context menu events.