defaultProps.d.ts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import * as React from 'react';
  2. import { Alignment, Direction } from './constants';
  3. export declare const defaultProps: {
  4. columns: never[];
  5. data: never[];
  6. title: string;
  7. keyField: string;
  8. selectableRows: boolean;
  9. selectableRowsHighlight: boolean;
  10. selectableRowsNoSelectAll: boolean;
  11. selectableRowSelected: null;
  12. selectableRowDisabled: null;
  13. selectableRowsComponent: "input";
  14. selectableRowsComponentProps: {};
  15. selectableRowsVisibleOnly: boolean;
  16. selectableRowsSingle: boolean;
  17. clearSelectedRows: boolean;
  18. expandableRows: boolean;
  19. expandableRowDisabled: null;
  20. expandableRowExpanded: null;
  21. expandOnRowClicked: boolean;
  22. expandableRowsHideExpander: boolean;
  23. expandOnRowDoubleClicked: boolean;
  24. expandableInheritConditionalStyles: boolean;
  25. expandableRowsComponent: () => JSX.Element;
  26. expandableIcon: {
  27. collapsed: React.JSX.Element;
  28. expanded: React.JSX.Element;
  29. };
  30. expandableRowsComponentProps: {};
  31. progressPending: boolean;
  32. progressComponent: React.JSX.Element;
  33. persistTableHead: boolean;
  34. sortIcon: null;
  35. sortFunction: null;
  36. sortServer: boolean;
  37. striped: boolean;
  38. highlightOnHover: boolean;
  39. pointerOnHover: boolean;
  40. noContextMenu: boolean;
  41. contextMessage: {
  42. singular: string;
  43. plural: string;
  44. message: string;
  45. };
  46. actions: null;
  47. contextActions: null;
  48. contextComponent: null;
  49. defaultSortFieldId: null;
  50. defaultSortAsc: boolean;
  51. responsive: boolean;
  52. noDataComponent: React.JSX.Element;
  53. disabled: boolean;
  54. noTableHead: boolean;
  55. noHeader: boolean;
  56. subHeader: boolean;
  57. subHeaderAlign: Alignment;
  58. subHeaderWrap: boolean;
  59. subHeaderComponent: null;
  60. fixedHeader: boolean;
  61. fixedHeaderScrollHeight: string;
  62. pagination: boolean;
  63. paginationServer: boolean;
  64. paginationServerOptions: {
  65. persistSelectedOnSort: boolean;
  66. persistSelectedOnPageChange: boolean;
  67. };
  68. paginationDefaultPage: number;
  69. paginationResetDefaultPage: boolean;
  70. paginationTotalRows: number;
  71. paginationPerPage: number;
  72. paginationRowsPerPageOptions: number[];
  73. paginationComponent: null;
  74. paginationComponentOptions: {};
  75. paginationIconFirstPage: React.JSX.Element;
  76. paginationIconLastPage: React.JSX.Element;
  77. paginationIconNext: React.JSX.Element;
  78. paginationIconPrevious: React.JSX.Element;
  79. dense: boolean;
  80. conditionalRowStyles: never[];
  81. theme: "default";
  82. customStyles: {};
  83. direction: Direction;
  84. onChangePage: () => null;
  85. onChangeRowsPerPage: () => null;
  86. onRowClicked: () => null;
  87. onRowDoubleClicked: () => null;
  88. onRowMouseEnter: () => null;
  89. onRowMouseLeave: () => null;
  90. onRowExpandToggled: () => null;
  91. onSelectedRowsChange: () => null;
  92. onSort: () => null;
  93. onColumnOrderChange: () => null;
  94. };