Enable table cell drag selection through props.areaSelection.
- Support copying to clipboard (Ctrl/Cmd + C).
- Esc to cancel selection
- Support keyboard selection (arrow keys, Shift, Tab).
- Support Ctrl multi-selection (configurable)
- Support Shift extend selection (configurable)
Need Registration
This feature needs to be registered before use.
Registration method:
ts
import { registerFeature, useAreaSelection } from 'stk-table-solid';
// 注册区域选取功能
registerFeature(useAreaSelection);js
<StkTable
areaSelection
></StkTable>loading