From 7cdfce4460aa7c624852ec61a929cb66787eaef7 Mon Sep 17 00:00:00 2001 From: Maxim <89984934+mmaltsev-ct@users.noreply.github.com> Date: Mon, 1 Aug 2022 16:52:59 +0200 Subject: [PATCH] fix(readme): fixed readme for DataTableManager (#2246) --- packages/components/data-table-manager/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/data-table-manager/README.md b/packages/components/data-table-manager/README.md index c5427efc5d..6817f3b52a 100644 --- a/packages/components/data-table-manager/README.md +++ b/packages/components/data-table-manager/README.md @@ -63,8 +63,8 @@ export default Example; ## Properties -| Props | Type | Required | Default | Description | -| ---------------------------------------------- | ----------------------------------------------------------- | :------: | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | +| Props | Type | Required | Default | Description | +| ------------------------- | -------------------------------------------------------------- | :------: | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `columns` | `array` | ✅ | | Each object requires a unique `key` which should correspond to property key of the items of `rows` that you want to render under this column, and a `label` which defines the name shown on the header. The list of columns to be rendered. Each column can be customized (see properties below). | | `columns[].key` | `string` | ✅ | | The unique key of the column that is used to identify your data type. You can use this value to determine which value from a row item should be rendered.
For example, if the data is a list of users, where each user has a `firstName` property, the column key should be `firstName`, which renders the correct value by default. The key can also be some custom or computed value, in which case you need to provide an explicit mapping of the value by implementing either the `itemRendered` function or the column-specific `renderItem` function. | | `columns[].label` | `node` | ✅ | | The label of the column that will be shown on the column header. |