Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion ww-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,23 @@ export default {
code: 'downloadCSV',
/* wwEditor:start */
edit: () => import('./src/components/DownloadCSV.vue'),
copilot: {
description: 'Downloads data as a CSV file. If the data is an array of objects, it will create columns for all unique keys. If the data is an array of primitive values, it will create a single column.',
returns: 'void',
schema: {
data: {
type: 'array',
description: 'The data to export to CSV format. Can be an array of objects or primitive values',
bindable: true
},
fileName: {
type: 'string',
description: 'The name of the file to download (without .csv extension)',
bindable: true
}
}
},
/* wwEditor:end */
},
],
};
};