Refactor: Disable AgGridReact table resize option

This commit is contained in:
igorrCarvalho 2024-05-06 19:13:35 -03:00
commit b96eb4715d
2 changed files with 22 additions and 1 deletions

View file

@ -83,6 +83,7 @@ export default function GlobalVariablesPage() {
headerName: "Variable Name", headerName: "Variable Name",
field: "name", field: "name",
flex: 2, flex: 2,
resizable: false,
}, //This column will be twice as wide as the others }, //This column will be twice as wide as the others
{ {
field: "type", field: "type",
@ -93,6 +94,7 @@ export default function GlobalVariablesPage() {
}, },
flex: 1, flex: 1,
editable: false, editable: false,
resizable: false,
}, },
// { // {
// field: "value", // field: "value",

View file

@ -20,11 +20,18 @@ export default function ShortcutsPage() {
// Column Definitions: Defines the columns to be displayed. // Column Definitions: Defines the columns to be displayed.
const [colDefs, setColDefs] = useState<(ColDef<any> | ColGroupDef<any>)[]>([ const [colDefs, setColDefs] = useState<(ColDef<any> | ColGroupDef<any>)[]>([
{ headerName: "Functionality", field: "name", flex: 1, editable: false }, //This column will be twice as wide as the others {
headerName: "Functionality",
field: "name",
flex: 1,
editable: false,
resizable: false,
}, //This column will be twice as wide as the others
{ {
field: "shortcut", field: "shortcut",
flex: 2, flex: 2,
editable: false, editable: false,
resizable: false,
}, },
]); ]);
@ -32,50 +39,62 @@ export default function ShortcutsPage() {
{ {
name: "Advanced Settings Component", name: "Advanced Settings Component",
shortcut: advancedShortcut, shortcut: advancedShortcut,
resizable: false,
}, },
{ {
name: "Minimize Component", name: "Minimize Component",
shortcut: minizmizeShortcut, shortcut: minizmizeShortcut,
resizable: false,
}, },
{ {
name: "Code Component", name: "Code Component",
shortcut: codeShortcut, shortcut: codeShortcut,
resizable: false,
}, },
{ {
name: "Copy Component", name: "Copy Component",
shortcut: copyShortcut, shortcut: copyShortcut,
resizable: false,
}, },
{ {
name: "Duplicate Component", name: "Duplicate Component",
shortcut: duplicateShortcut, shortcut: duplicateShortcut,
resizable: false,
}, },
{ {
name: "Share Component", name: "Share Component",
shortcut: shareShortcut, shortcut: shareShortcut,
resizable: false,
}, },
{ {
name: "Docs Component", name: "Docs Component",
shortcut: docsShortcut, shortcut: docsShortcut,
resizable: false,
}, },
{ {
name: "Save Component", name: "Save Component",
shortcut: saveShortcut, shortcut: saveShortcut,
resizable: false,
}, },
{ {
name: "Delete Component", name: "Delete Component",
shortcut: deleteShortcut, shortcut: deleteShortcut,
resizable: false,
}, },
{ {
name: "Open Playground", name: "Open Playground",
shortcut: interactionShortcut, shortcut: interactionShortcut,
resizable: false,
}, },
{ {
name: "Undo", name: "Undo",
shortcut: undoShortcut, shortcut: undoShortcut,
resizable: false,
}, },
{ {
name: "Redo", name: "Redo",
shortcut: redoShortcut, shortcut: redoShortcut,
resizable: false,
}, },
]); ]);