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

[Feature]: Ability to programmatically control the Table widget's column order #27149

Open
1 task done
bharath31 opened this issue Sep 11, 2023 · 4 comments
Open
1 task done
Assignees
Labels
Enhancement New feature or request Javascript Product Issues related to users writing javascript in appsmith Low An issue that is neither critical nor breaks a user flow Query & JS Pod Issues related to the query & JS Pod Widget setter method Issues with widget property setters

Comments

@bharath31
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Summary

I would like to programmatically control a table's column order so that I can create custom views based on user actions

Why should this be worked on?

Ability to add custom views to the table without manipulating data

@bharath31 bharath31 added Enhancement New feature or request Widget setter method Issues with widget property setters labels Sep 11, 2023
@bharath31 bharath31 self-assigned this Sep 11, 2023
@github-actions github-actions bot added the Javascript Product Issues related to users writing javascript in appsmith label Sep 11, 2023
@bharath31 bharath31 added the Low An issue that is neither critical nor breaks a user flow label Sep 12, 2023
@BorenTsaiAMD
Copy link

Adding use case

The application that I'm developing is a table builder that lets the user build a table template which the user can define column names / how many rows should be in it.

image
The top table's data source is a JS object's return value. Columns in the top table are controlled by the bottom table. When my user edits the bottom table, it'll update a JSObject which is the top table's data source. Column names are completely assigned by users.

@bharath31
Copy link
Author

@BorenTsaiAMD when a user edits the bottom table, you can programmatically manipulate the source data and set it on the top table via the Table.setData() method. could you check if this works?

@BorenTsaiAMD
Copy link

@bharath31 I tried it, doesn't work. I tried updating one of the bottom table's row which means I'm updating one of the top table's column name, the column that I edited ended up getting sorted to dead last column.

@bharath31
Copy link
Author

another user request [a-force]

@Nikhil-Nandagopal Nikhil-Nandagopal added the Query & JS Pod Issues related to the query & JS Pod label Aug 5, 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 Javascript Product Issues related to users writing javascript in appsmith Low An issue that is neither critical nor breaks a user flow Query & JS Pod Issues related to the query & JS Pod Widget setter method Issues with widget property setters
Projects
None yet
Development

No branches or pull requests

3 participants