canonical / canonical/react-components

Allow a prop for hiding `per_page` dropdown in TablePagination

Open
#1,324 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
151
Forks
74
Avg merge
1d 2h
Merged PRs (30d)
11

Description

### Problem
This is how the [TablePagination](https://canonical.github.io/react-components/?path=/docs/components-tablepagination--docs) looks like

Image

Looks like it's currently not possible to hide the `per_page` dropdown on the right.
Also, it's currently not possible to render the "first page" as a plain text, rather than number input.

### Expectation
[TablePagination](https://canonical.github.io/react-components/?path=/docs/components-tablepagination--docs) should be updated to accept a prop, that hides the `per_page` dropdown, and renders `first_page` as a plain text.

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.