View as Markdown

API reference: @salmonui/data-grid

DataGridColumnPinChangeEventinterface

import type { DataGridColumnPinChangeEvent } from '@salmonui/data-grid';
interface DataGridColumnPinChangeEvent extends DataGridEvent {
    readonly field: string;
    readonly pinned: DataGridColumnPin | null;
    readonly previousPinned: DataGridColumnPin | null;
}

onBeforeColumnPinChange (cancellable) / onColumnPinChange.

DataGridColumnPinChangeEvent members (7, 4 inherited)
NameSignatureDescription
fieldreadonly field: string;
pinnedreadonly pinned: DataGridColumnPin | null;

Proposed (before) or applied (after) side; null unpins.

previousPinnedreadonly previousPinned: DataGridColumnPin | null;
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).