Skip to content

Commit

Permalink
Updated pagination prop descriptions for EuiInMemoryTable (#3142)
Browse files Browse the repository at this point in the history
  • Loading branch information
walnutdust authored Mar 30, 2020
1 parent 816e106 commit db1eb71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Improved `htmlIdGenerator` when supplying both `prefix` and `suffix` ([#3076](https://github.com/elastic/eui/pull/3076))
- Updated pagination prop descriptions for `EuiInMemoryTable` ([#3142](https://github.com/elastic/eui/pull/3142))

## [`22.2.0`](https://github.com/elastic/eui/tree/v22.2.0)

Expand Down
8 changes: 5 additions & 3 deletions src-docs/src/views/tables/in_memory/props_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const propsInfo = {
columns: basicPropsInfo.EuiBasicTable.__docgenInfo.props.columns,
pagination: {
description:
'Enables/disables pagination. Can be an object that configured pagination when enabled',
'Enables/disables pagination. Can be an object that configures pagination when enabled',
required: false,
type: { name: 'boolean | #Pagination' },
},
Expand Down Expand Up @@ -80,13 +80,15 @@ export const propsInfo = {
type: { name: 'number' },
},
initialPageSize: {
description:
'Configures the default page size to show, must be one of "pageSizeOptions"',
description: `Configures the default page size to show, must be one of \`pageSizeOptions\`. Defaults to
the first page size in \`pageSizeOptions\`.`,
required: false,
type: { name: 'number' },
},
pageSizeOptions:
basicPropsInfo.Pagination.__docgenInfo.props.pageSizeOptions,
hidePerPageOptions:
basicPropsInfo.Pagination.__docgenInfo.props.hidePerPageOptions,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/tables/paginated/paginated.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class Table extends Component {
return (
<div>
<EuiSwitch
checked={this.state.showPerPageOptions}
checked={!this.state.showPerPageOptions}
label={
<span>
Hide per page options with{' '}
Expand Down

0 comments on commit db1eb71

Please sign in to comment.