API reference: @salmonui/data-grid
DataGridBeforeFillEventinterface
import type { DataGridBeforeFillEvent } from '@salmonui/data-grid';interface DataGridBeforeFillEvent extends DataGridEvent {
readonly range: {
readonly anchor: DataGridClipboardCell;
readonly focus: DataGridClipboardCell;
};
readonly target: DataGridClipboardCell;
}
onBeforeFill: preventDefault() cancels the fill.
| Name | Signature | Description |
|---|---|---|
range | readonly range: {
readonly anchor: DataGridClipboardCell;
readonly focus: DataGridClipboardCell;
}; | The source range whose values are tiled. |
target | readonly target: DataGridClipboardCell; | The cell the range is extended to. |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |