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

Data table component #11

Open
mkapal opened this issue Apr 5, 2024 · 0 comments
Open

Data table component #11

mkapal opened this issue Apr 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mkapal
Copy link
Member

mkapal commented Apr 5, 2024

A data table made from InSim buttons.

function App() {
  const columns = [
    { name: "Name", width: 10, accessor: 'name' },
    { name: "Age", width: 5, accessor: 'age' },
  ];

  data = [
    { name: "Bob", age: 15 },
    { name: "Alice", age: 24 },
  ];

  return <DataTable columns={columns} data={data} />;
}

Feature ideas

  • column definitions
  • data array
  • row button variant
  • column button variant
  • sorting by column
  • pagination

Consider using a headless data table library if possible.

@mkapal mkapal self-assigned this Apr 5, 2024
@mkapal mkapal added the enhancement New feature or request label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant