Skip to content

Commit

Permalink
docs(Table): fix readme (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor authored Jan 22, 2024
1 parent 9ae5d01 commit 01cf8df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Additional functionality is enabled via HOCs:
| data | Data | `any[]` | |
| columns | Column parameters | `TableColumnConfig[]` | |
| verticalAlign | Vertical alignment of contents | `"top"` `"middle"` | |
| getRowDescriptor | Row mouseleave handler | `(item: any, index: number) => DescriptorType` | |
| getRowDescriptor | Handler to get row descriptor | `(item: any, index: number) => DescriptorType` | |
| getRowId | The row ID, used when selecting and sorting rows. If you skip a row, its ID will be the value of the field in the row data with the same name as the column ID | `string` `((item: any, index: number) => string)` | |
| getRowClassNames | Row CSS classes | `(item: any, index: number) => string[]` | |
| isRowDisabled | Condition for disabling columns | `(item: any, index: number) => boolean` | |
Expand All @@ -44,11 +44,11 @@ Additional functionality is enabled via HOCs:

### DescriptorType

| Name | Description | Type | Default |
| :--------- | :----------------------------------------------- | :---------------------: | :---------: |
| id | The row ID, used when selecting and sorting rows | `string` `undefined` | `undefined` |
| disabled | Column ID | `boolean` `undefined` | `undefined` |
| classNames | Row CSS classes | ` string[]` `undefined` | `undefined` |
| Name | Description | Type | Default |
| :--------- | :----------------------------------------------- | :---------: | :-----: |
| id | The row ID, used when selecting and sorting rows | `string` | |
| disabled | Condition for disabling columns | `boolean` | |
| classNames | Row CSS classes | ` string[]` | |

### TableColumnConfig

Expand Down

0 comments on commit 01cf8df

Please sign in to comment.