Dataloader Dialog
dataloader is the legacy name for the Table dialog.
Existing templates that use type: "dataloader" continue to work. New templates should use type: "table".
Legacy Usage
javascript
export default ({ payload }) => {
const { dataloader_response } = payload;
return (
<div onClick={() => $uhuu.editDialog({ path: "dataloader_response", type: "dataloader" })}>
<Chart data={dataloader_response?.data} />
</div>
);
};The saved response shape is unchanged:
json
{
"dataloader_response": {
"data": [
{ "label": "January", "value": 100 },
{ "label": "February", "value": 200 },
{ "label": "March", "value": 150 }
]
}
}See Table dialog for current parameters and examples.