Work on grid
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user