ErpDataTable constructor

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

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.dateFilter=false,
  this.headerActions,
  this.emptyMessage,
  this.showFooterTotals = false,
  this.totals,
  required this.token,
  required this.url, required this.isReportRow, this.searchFields,
});