Form interface work

This commit is contained in:
Hein
2025-10-17 17:04:12 +02:00
parent 8d26d56599
commit 6350b513ca
6 changed files with 197 additions and 62 deletions

View File

@@ -68,18 +68,19 @@ export const GridlerGoAPIExampleEventlog = () => {
<Gridler
height="100%"
columns={columns}
getMenuItems={(id, _state, row, col, defaultItems) => {
return [
...(defaultItems ?? []),
// {
// id: 'test',
// label: `Test -${id}`,
// onClick: () => {
// console.log('Test clicked', row, col);
// },
// },
];
}}
// getMenuItems={(id, _state, row, col, defaultItems) => {
// console.log('GridlerGoAPIExampleEventlog getMenuItems root', id, row, col, defaultItems);
// return [
// ...(defaultItems ?? []),
// // {
// // id: 'test',
// // label: `Test -${id}`,
// // onClick: () => {
// // console.log('Test clicked', row, col);
// // },
// // },
// ];
// }}
keyField="id_process"
onChange={(v) => {
//console.log('GridlerGoAPIExampleEventlog onChange', v);
@@ -91,7 +92,12 @@ export const GridlerGoAPIExampleEventlog = () => {
uniqueid="gridtest"
values={values}
>
<APIAdaptorGoLangv2 authtoken={apiKey} url={`${apiUrl}/public/process`} />
<Gridler.APIAdaptorGoLangv2 authtoken={apiKey} url={`${apiUrl}/public/process`} />
<Gridler.GlidlerFormInterface
onRequestForm={(request, data) => {
console.log('Form requested', request, data);
}}
/>
</Gridler>
<Divider />
<Group>