Merge pull request #812 from Budibase/lock-columns
prevent drag on first two columns
This commit is contained in:
commit
117560a9d8
|
@ -47,14 +47,16 @@
|
||||||
if (allowEditing) {
|
if (allowEditing) {
|
||||||
result = [
|
result = [
|
||||||
{
|
{
|
||||||
pinned: "left",
|
checkboxSelection: true,
|
||||||
|
lockPosition: true,
|
||||||
headerName: "Edit",
|
headerName: "Edit",
|
||||||
|
pinned: "left",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
suppressMovable: true,
|
suppressMovable: true,
|
||||||
suppressMenu: true,
|
suppressMenu: true,
|
||||||
minWidth: 84,
|
minWidth: 114,
|
||||||
width: 84,
|
width: 114,
|
||||||
cellRenderer: editRowRenderer,
|
cellRenderer: editRowRenderer,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -63,7 +65,6 @@
|
||||||
Object.keys(schema || {}).forEach((key, idx) => {
|
Object.keys(schema || {}).forEach((key, idx) => {
|
||||||
result.push({
|
result.push({
|
||||||
headerCheckboxSelection: false,
|
headerCheckboxSelection: false,
|
||||||
checkboxSelection: idx === 0 && allowEditing,
|
|
||||||
headerComponent: TableHeader,
|
headerComponent: TableHeader,
|
||||||
headerComponentParams: {
|
headerComponentParams: {
|
||||||
field: schema[key],
|
field: schema[key],
|
||||||
|
|
Loading…
Reference in New Issue