Form interface work
This commit is contained in:
@@ -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>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user