1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00

Merge pull request #812 from Budibase/lock-columns

prevent drag on first two columns
This commit is contained in:
Martin McKeaveney 2020-11-02 13:13:28 +00:00 committed by GitHub
commit 117560a9d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -47,14 +47,16 @@
if (allowEditing) {
result = [
{
pinned: "left",
checkboxSelection: true,
lockPosition: true,
headerName: "Edit",
pinned: "left",
sortable: false,
resizable: false,
suppressMovable: true,
suppressMenu: true,
minWidth: 84,
width: 84,
minWidth: 114,
width: 114,
cellRenderer: editRowRenderer,
},
]
@ -63,7 +65,6 @@
Object.keys(schema || {}).forEach((key, idx) => {
result.push({
headerCheckboxSelection: false,
checkboxSelection: idx === 0 && allowEditing,
headerComponent: TableHeader,
headerComponentParams: {
field: schema[key],