We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94525d1 + 8018b12 commit 18ebefbCopy full SHA for 18ebefb
client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx
@@ -294,8 +294,13 @@ export const TableCompView = React.memo((props: {
294
)
295
}
296
onDownload={() => {
297
- handleChangeEvent("download");
298
- onDownload(`${compName}-data`)
+ if (compChildren.onEvent.isBind("download")) {
+ // Custom download handler exists
299
+ handleChangeEvent("download");
300
+ } else {
301
+ // Download default CSV
302
+ onDownload(`${compName}-data`);
303
+ }
304
}}
305
hasChange={hasChange}
306
onSaveChanges={() => handleChangeEvent("saveChanges")}
0 commit comments