Work on grid

This commit is contained in:
Hein
2025-09-22 14:58:25 +02:00
parent 46dabed765
commit ea6b100225
15 changed files with 264 additions and 65 deletions

View File

@@ -15,37 +15,25 @@ export const GridlerGoAPIExampleEventlog = () => {
const columns: GridlerColumns = [
{
id: 'rid_atevent',
id: 'id_process',
title: 'RID',
width: 100,
},
{
Cell: (_row, _col, _colindex, value) => {
return {
cursor: 'crosshair',
data: value,
displayData: `- ${value}`,
kind: 'text',
};
},
grow: 1,
id: 'changedate',
title: 'Date',
id: 'process',
title: 'Process',
width: 200,
},
{
id: 'changetime',
title: 'Time',
width: 200,
},
{
id: 'changeuser',
title: 'User',
id: 'processtype',
title: 'Type',
},
{
id: 'actionx',
title: 'Action',
disableSort: true,
id: 'status',
title: 'Status',
width: 100,
},
];
@@ -61,18 +49,18 @@ export const GridlerGoAPIExampleEventlog = () => {
getMenuItems={(id, _state, row, col, defaultItems) => {
return [
...(defaultItems ?? []),
{
id: 'test',
label: `Test ${id}`,
onClick: () => {
console.log('Test clicked', row, col);
},
},
// {
// id: 'test',
// label: `Test -${id}`,
// onClick: () => {
// console.log('Test clicked', row, col);
// },
// },
];
}}
uniqueid="gridtest"
>
<APIAdaptorGoLangv2 authtoken={apiKey} url={`${apiUrl}/core/atevent`} />
<APIAdaptorGoLangv2 authtoken={apiKey} url={`${apiUrl}/public/process`} />
</Gridler>
</Stack>
);