From 9ae5d017d85c63eae20bcf3228a188f7eeb24d5c Mon Sep 17 00:00:00 2001 From: Daniil Chervyakov Date: Mon, 22 Jan 2024 14:55:15 +0300 Subject: [PATCH] docs(Table): fix typo and add missing prop on README (#1257) --- src/components/Table/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Table/README.md b/src/components/Table/README.md index 0b5f5e8379..e1f40a89f7 100644 --- a/src/components/Table/README.md +++ b/src/components/Table/README.md @@ -54,8 +54,9 @@ Additional functionality is enabled via HOCs: | Name | Description | Type | Default | | :---------- | :----------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------: | :---------------------------------------------------------: | -| id | Column ID | `any[]` | | +| id | Column ID | `string` | | | name | Column name (header) | `string` `(() => React.ReactNode)` | column ID | +| className | CSS-class that will be added to all cells in the column | `string` | | | placeholder | The stub when there is no data in a cell | `string` `((item: any, index: number) => React.ReactNode)` | `— (—)` | | template | Cell contents. If you skip a row, the cell contents will be the value of the field with the same name as this row. | `string` `((item: any, index: number) => React.ReactNode)` | The value of the field with the name equal to the column ID | | align | Content alignment | `"left"` `"center"` `"right"` | |