ErpDataTable constructor

const ErpDataTable({
  1. Key? key,
  2. required String title,
  3. required List<ErpColumnConfig> columns,
  4. required List<Map<String, dynamic>> data,
  5. required ErpTheme theme,
  6. List<ErpColumnConfig>? availableExtraColumns,
  7. bool showSearch = true,
  8. Map<String, dynamic>? selectedRow,
  9. void onRowTap(
    1. Map<String, dynamic> row
    )?,
  10. List<Widget>? headerActions,
  11. String? emptyMessage,
  12. bool showFooterTotals = false,
  13. Map<String, double>? totals,
  14. required String token,
  15. required String url,
})

Implementation

const ErpDataTable({
  super.key,
  required this.title,
  required this.columns,
  required this.data,
  required this.theme,
  this.availableExtraColumns,
  this.showSearch = true,
  this.selectedRow,
  this.onRowTap,
  this.headerActions,
  this.emptyMessage,
  this.showFooterTotals = false,
  this.totals,
  required this.token,
  required this.url,
});