lowcode icon indicating copy to clipboard operation
lowcode copied to clipboard

Templates for data table columns

Open jozef-slezak opened this issue 4 years ago • 2 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 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)

jozef-slezak avatar Jul 30 '21 08:07 jozef-slezak

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

mat-app avatar Jul 30 '21 09:07 mat-app

  • [ ] and what about methods for filtering. How should i know about all parameters which can be attributes for <DataGrid/>

Item21 avatar Aug 03 '21 09:08 Item21