lowcode
lowcode copied to clipboard
Templates for data table columns
Goal: make existing code more readable/maintanable - templates will allow customization per project
Checklist:
- [ ] refactor existing lowcode implementation in the way that typescript factory code will be replaced with templates
- [ ] generated data table should support filter, sorting, pagination see example https://github.com/iteria-app/example-material-ui/pull/44 and https://github.com/iteria-app/example-grommet/pull/16
Relates to #132 and #138
Requirements:
- template per column
- template per data grid
- each data type should have it's own template
- each template should be real react code (imports, functional components, hooks)
Please view this code: https://github.com/mat-app/lowcode/blob/09c5e861a3c67358551e6280771b56026c5264ae/packages/react-lowcode/src/codegen/generation/generators/detail/mui-detail-generator.ts#L270..it should help you with implementing of template
- [ ] and what about methods for filtering. How should i know about all parameters which can be attributes for
<DataGrid/>