-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add table filter ref and example #407
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/graphic-walker/graphic-walker/packages/graphic-walker/src/Table.tsx The code changes in this pull request are relatively safe. The only change is the addition of a ref={props.tableFilterRef ? props.tableFilterRef : null} This will ensure that Risk Level 2 - /home/runner/work/graphic-walker/graphic-walker/packages/playground/src/examples/pages/table.stories.tsx The code seems to be well written and follows the SOLID principles. However, there are a few areas that could be improved for better readability and maintainability:
const downloadCSV = async () => {
try {
// existing code...
} catch (error) {
console.error('Failed to download CSV:', error);
}
};
const PAGE_SIZE = 50;
// ...
<TableWalker tableFilterRef={tableRef} fields={fields} data={dataSource} appearance={theme} pageSize={PAGE_SIZE} vizThemeConfig=\"g2\" />
const FILE_NAME = 'Student.csv';
// ...
a.download = FILE_NAME; 🔍📝🔧 Powered by Code Review GPT |
584e468
to
1869c28
Compare
Added tableFilterRef prop for TableWalker.
Added a example for using tableFilterRef to export csv with filters.