Cell span
Introduction
This feature is experimental, incomplete and can be changed in the future.
This feature allows you to set colspan and rowspan in a cell. Spanned cell donβt pushes the other from their origin position. Insted, spanned cell stretches to desired size.
Usage
If you want to use it, please use only cells which type is header
.
The use of this type of cell results in less undesirable behavior.
Cells that lie underneath the spanned cell should also be marksed as header
type.
import { Row } from "@silevis/reactgrid";
const row: Row = {
rowId: 0,
cells: [
{ type: 'header', text: 'total', colspan: 3}, { type: 'header', text: '' }, { type: 'header', text: '' }, { type: 'text', text: 'some text'},
// ...
]
}
Caveats
Currently, the span of cells plays a visual role, functionalities related to interaction will be successively implemented in the future.
Feature | Support |
---|---|
Displaying | π’ |
Highlights | π’ |
Keyboard actions | π |
Focus | π΄ |
Cell editor | π΄ |
Copy/cut/paste | π΄ |
Selection | π΄ |
Fill handle | π΄ |
Scrolling | π΄ |