* Merges provided configuration with defaults.
()
| 53 | * Merges provided configuration with defaults. |
| 54 | */ |
| 55 | getConfig(): TableProps<T> { |
| 56 | return { |
| 57 | data: this.props.data, |
| 58 | columns: this.props.columns || this.getDataKeys(), |
| 59 | padding: this.props.padding || 1, |
| 60 | header: this.props.header || Header, |
| 61 | cell: this.props.cell || Cell, |
| 62 | skeleton: this.props.skeleton || Skeleton, |
| 63 | }; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Gets all keyes used in data by traversing through the data. |
no test coverage detected