View as Markdown

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.

DataGridBeforeFillEvent members (6, 4 inherited)
NameSignatureDescription
rangereadonly range: { readonly anchor: DataGridClipboardCell; readonly focus: DataGridClipboardCell; };

The source range whose values are tiled.

targetreadonly target: DataGridClipboardCell;

The cell the range is extended to.

typeinheritedtype: string;

'sortChange', 'beforeSortChange', ...

sourceinheritedsource: DataGridEventSource;
defaultPreventedinheriteddefaultPrevented: boolean;

True after preventDefault() (before-events and click events).

preventDefaultinheritedpreventDefault: () => void;

Before-events and click events: cancels the action (or the built-in behavior).