Event handlers and Flex changes

This commit is contained in:
Hein
2025-10-22 17:06:31 +02:00
parent af68d6d377
commit f5887b5be6
6 changed files with 82 additions and 14 deletions

View File

@@ -18,6 +18,25 @@ export const GridlerGoAPIExampleEventlog = () => {
const [sections, setSections] = useState<Record<string, unknown> | undefined>(undefined);
const columns: GridlerColumns = [
{
Cell: (row, col, colIndx, value, storeState) => {
const process = `${
row?.cql2?.length > 0
? '🔖'
: row?.cql1?.length > 0
? '📕'
: row?.status === 1
? '💡'
: row?.status === 2
? '🔒'
: '⚙️'
} ${String(row?.id_process ?? '0')}`;
return {
data: process,
displayData: process,
status: row?.status,
};
},
id: 'id_process',
title: 'RID',
width: 100,
@@ -45,7 +64,7 @@ export const GridlerGoAPIExampleEventlog = () => {
];
return (
<Stack h="80vh">
<Stack h="80vh" w="50vw">
<h2>Demo Using Go API Adaptor</h2>
<TextInput label="API Url" onChange={(e) => setApiUrl(e.target.value)} value={apiUrl} />
<TextInput label="API Key" onChange={(e) => setApiKey(e.target.value)} value={apiKey} />