Skip to main content

Copy row

Prop enableCopyRow — engine behaviour, default true.

Guide

When to use it

Keep (or remove) the "copy the whole row" affordance — Shift+Space.

How it works

A sub-toggle of clipboard (on by default) gating selectRow / copyRow.

Gotchas

  • Only relevant when enableClipboard is on.
  • Set it false to allow range/column copy but forbid whole-row copy.

Live example

Example source
import React from 'react'
import { BstTableMui } from '@bloomskill/table-mui'
import type { BstTableColumn } from '@bloomskill/table-engine'
import '@bloomskill/table-engine/styles.css'

type Row = { id: string; name: string; team: string; role: string; score: number }
const seed: Row[] = [
{ id: '1', name: 'Ada Lovelace', team: 'Platform', role: 'Engineer', score: 92 },
{ id: '2', name: 'Alan Turing', team: 'Research', role: 'Scientist', score: 88 },
{ id: '3', name: 'Grace Hopper', team: 'Platform', role: 'Engineer', score: 95 },
{ id: '4', name: 'Katherine J.', team: 'Research', role: 'Analyst', score: 90 },
{ id: '5', name: 'Edsger Dijkstra',team: 'Platform', role: 'Architect',score: 84 },
]
const columns: BstTableColumn<Row>[] = [
{ id: 'name', accessorKey: 'name', header: 'Name' },
{ id: 'team', accessorKey: 'team', header: 'Team' },
{ id: 'role', accessorKey: 'role', header: 'Role' },
{ id: 'score', accessorKey: 'score', header: 'Score', sortFn: 'basic' },
]

export default function App() {
return (
<BstTableMui data={seed} columns={columns} getRowId={(r) => r.id}
enableCellSelection enableClipboard showStatusBar />
)
}
Loading live example…

Overview

Layerenable* (engine, resolved in useBstTable)
Typeboolean
Defaulttrue
Maps tocustom — sub-toggle of clipboard; gates selectRow/copyRow (Shift+Space). In settings ("Selection & clipboard", always shown)
Status✅ done
Sincev0.27.0
Settings sheetSelection & clipboard

Copy a whole row — the Shift+Space gesture / runtime.copyRow. A sub-toggle of clipboard; set false to disable row-copy. Default: true.

Enable it

<BstTableMui
data={rows}
columns={columns}
enableCopyRow
/>

Swap BstTableMui for BstTableShadcn (and the CSS import) for the shadcn skin — same props.

Behavior & interactions

  • Requires enableClipboard to be on — this flag is a no-op otherwise.
  • Defaults to ON — set false to disable Shift+Space row copy while keeping the rest of the clipboard.

Spec coverage

Spec codes (A1, C2, X8, …) are Bst-Table's internal requirement IDs from the capability matrix; P0P2 mark the delivery phase. They are traceability tags, not part of the public API.

  • H2 · Copy row — ✅ built. P3