MCPcopy
hub / github.com/FlowiseAI/Flowise / addCols

Function addCols

packages/ui/src/ui-component/grid/DataGrid.jsx:54–66  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

52 )
53
54 const addCols = (columns) => {
55 return [
56 ...columns,
57 {
58 field: 'actions',
59 type: 'actions',
60 width: 80,
61 getActions: (params) => [
62 <GridActionsCellItem key={'Delete'} icon={<DeleteIcon />} label='Delete' onClick={deleteItem(params.id)} />
63 ]
64 }
65 ]
66 }
67
68 const colValues = addCols(columns)
69

Callers 1

DataGridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected