feat(context-menu): copy INSERT from selected columns
This commit is contained in:
18 files changed
+551
-49
No files matched your search
@@ -119,7 +119,7 @@ export async function copyToClipboard(text: string, env: ClipboardEnvironment =
|
||||
await writeText(text);
|
||||
return;
|
||||
} catch {
|
||||
// Fall through to Web Clipboard / legacy copy when the native plugin is unavailable.
|
||||
// Preserve Web Clipboard and legacy copy compatibility when native writes fail.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export type DataGridColumnMenuItem = {
|
||||
export type DataGridContextMenuItem = {
|
||||
label: string;
|
||||
action?: () => void;
|
||||
disabled?: boolean;
|
||||
disabled?: boolean | (() => boolean);
|
||||
separator?: boolean;
|
||||
icon?: Component;
|
||||
iconClass?: string;
|
||||
|
||||
@@ -17,6 +17,11 @@ export interface SelectionData {
|
||||
rows: GridCellValue[][];
|
||||
}
|
||||
|
||||
export interface CellSelectionMatrix extends SelectionData {
|
||||
rowIndexes: number[];
|
||||
columnIndexes: number[];
|
||||
}
|
||||
|
||||
export interface SelectionSummary {
|
||||
cellCount: number;
|
||||
rowCount: number;
|
||||
|
||||
Reference in new issue
Block a user