Following are some code samples from one of the features I've developed on my startup Vorta. Vorta is Supply Chain Software and it has a LOT of tables. To support that we've used datatables since it was best solution at the time on the frontend. Since we needed support for large, floating tables.
The following backend-only code uses DSL to define a table. By simply defining CustomerDatatable
, you get a functional table with sorting, searching, toggling, and reordering capabilities without any custom code. While there are additional supporting classes, I've only included a few. Despite its complexity, this approach simplifies maintenance and accelerates new development by confining changes to _datatable
files, thereby hiding much of the complexity.
To visually see what I mean you can view this video