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

[feat]: Add a "Create/New/Add" Button to Submit and Add Data to the Table #825

Open
2 tasks done
muhammadasif-cse opened this issue Jan 14, 2025 · 1 comment
Open
2 tasks done

Comments

@muhammadasif-cse
Copy link

Feature description

This feature request suggests adding a "New" button to the shadcn-table component. The button will allow users to submit new data through a form or input fields, and upon successful submission, the data will be dynamically added to the table.

Proposed Functionality:

  1. Add Button: Include a "New" button above or below the table to provide users with a clear action point for adding new data.
  2. Form/Modal: Clicking the button should open a form (in-line, modal, or drawer) where users can input the new data.
  3. Submit Action: Provide a "Submit" button in the form to confirm the addition of new data.
  4. Table Update: Upon successful submission, the table should update to reflect the new row without requiring a full page reload.
  5. Validation and Feedback: Include form validation to ensure data integrity and display success/error messages based on the operation's outcome.

Additional Context

  • This feature will enhance the user experience by making the table more interactive and reducing the need for external data input mechanisms.
  • It will also streamline workflows where frequent additions to the dataset are required.
  • If possible, support for hooks or callbacks should be included to handle the submission process in a flexible and customizable way.

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs
@muhammadcahya
Copy link

I create some pull request to add this request on Fix update task value null, add create button on toolbar action

Maybe you can review or implement your self before merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants