Templates for data table columns
jozef-slezak opened this issue · comments
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 iteria-app/material-ui-starter#44 and iteria-app/example-grommet#16
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/>