Glide Data Grid
  • 👋Welcome to Glide Data Grid
  • 🚀Extended QuickStart Guide
    • ✏️Editing Data
    • 🖱️Working with selections
    • 🔨Grid Columns
    • 📎Copy and paste support
  • 📒FAQ
  • 📚API
    • DataEditor
      • Required Props
      • Important Props
      • Row Markers
      • Editing
      • Input Interaction
      • Selection Handling
      • Custom Cells
      • Drag and Drop
      • Search
      • Styling
    • DataEditorCore
    • Cells
      • BaseGridCell
      • TextCell
      • BooleanCell
      • NumberCell
      • UriCell
      • ProtectedCell
      • RowIDCell
      • LoadingCell
      • ImageCell
      • MarkdownCell
      • BubbleCell
      • DrilldownCell
    • Common Types
    • DataEditorRef
  • Guides
    • Implementing Custom Cells
Powered by GitBook
On this page
  • onDragLeave
  • onDragOverCell
  • onDrop

Was this helpful?

  1. API
  2. DataEditor

Drag and Drop

interface DataEditorProps {
    onDragLeave?: (() => void);
    onDragOverCell?: ((cell: Item, dataTransfer: DataTransfer | null) => void);
    onDrop?: ((cell: Item, dataTransfer: DataTransfer | null) => void);
}

onDragLeave

onDragLeave?: (() => void);

Emitted when the external drag event leaves the data editor.


onDragOverCell

onDragOverCell?: ((cell: Item, dataTransfer: DataTransfer | null) => void);

Emitted when the external drag event enters a new cell in the grid.


onDrop

onDrop?: ((cell: Item, dataTransfer: DataTransfer | null) => void);

Emitted when the external drag is dropped onto a valid target inside of the grid.


PreviousCustom CellsNextSearch

Last updated 1 year ago

Was this helpful?

📚