Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Component #112

Open
alyssadee opened this issue May 12, 2021 · 2 comments
Open

Table Component #112

alyssadee opened this issue May 12, 2021 · 2 comments
Labels
component A reusable component that should be added to the library help wanted Extra attention is needed

Comments

@alyssadee
Copy link
Contributor

alyssadee commented May 12, 2021

Description

A versatile table component with multiple features:

  • Pagination
  • Infinite Scroll
  • Sorting by column
  • Collapsible content rows
  • Selection of a row
  • Routing on click of a row AND static row with clickable cells
  • Drag and drop sort of a row
  • Responsive
  • Customizable no results splash page
  • Saved sort
  • Search
  • Filtering
  • Export to CSV

Examples

https://material-ui.com/components/tables/
https://material-ui.com/api/collapse/
https://material-ui.com/components/data-grid/

Recommended Properties

  • className: string: Allows the developer to add additional classes to the element.
@alyssadee alyssadee added the component A reusable component that should be added to the library label May 12, 2021
@alyssadee alyssadee changed the title Table Table Component May 12, 2021
@alyssadee alyssadee added the help wanted Extra attention is needed label May 26, 2021
@lawren
Copy link
Collaborator

lawren commented May 26, 2021

Here's a first pass at why I think a Brewkit Table component might look like.


An example table with pagination and a collapsible row:

<Table paginated>
    <TableRow>
        <TableCell>Header1</TableCell>
        <TableCell>Header2</TableCell>
        <TableCell>Header3</TableCell>
    </TableRow>
    <CollapsibleTableRow>
        <TableCell>Entry1</TableCell>
        <TableCell>Entry2</TableCell>
        <TableCell>Entry3</TableCell>
    </TableRow>
</Table>

@emdrayallday
Copy link
Contributor

I'm not sure how feasible this is, but I'd also like to include the data-fetching functionality inside the component. Having react-query built in and even customizable via props.

Including infinite-querying - pagination - manipulating data before it's sent back. All of this should be possible with react-query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component A reusable component that should be added to the library help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants