Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Ability to clear the contents of a column #315

Closed
chriddyp opened this issue Dec 19, 2018 · 3 comments · Fixed by #497
Closed

Ability to clear the contents of a column #315

chriddyp opened this issue Dec 19, 2018 · 3 comments · Fixed by #497
Assignees
Labels
dash-meta-sponsored Development that has been sponsored by an organization https://plot.ly/products/consulting-and-oem/ dash-type-enhancement New feature or request size: 3
Milestone

Comments

@chriddyp
Copy link
Member

  • The UI for this feature may overload the existing x button on the column or it may introduce a new icon or an additional context menu.
  • Deleting the contents of a column will delete the contents across all pages (if pagination is enabled)
  • If a filtering expression is applied on a column of which the contents are deleted, the filter will be cleared as well.
@chriddyp chriddyp changed the title dash-table - ability to clear the contents of a column [Sponsored: Due May 1] Ability to clear the contents of a column [Sponsored: Due May 1] Dec 19, 2018
@chriddyp chriddyp added the dash-meta-sponsored Development that has been sponsored by an organization https://plot.ly/products/consulting-and-oem/ label Dec 19, 2018
@Marc-Andre-Rivet Marc-Andre-Rivet added this to the Dash v1.1.0 milestone Jul 6, 2019
@chriddyp
Copy link
Member Author

chriddyp commented Jul 9, 2019

Similar to the comment in #318 (comment), for now I believe this is something we can override the x with. The Dash developer will be the one in control of creating a fixed UI for a very structured workflow for a very well-defined application.

In the future, we can incorporate a broader UI in order to give this option to the end-user.

@Marc-Andre-Rivet
Copy link
Contributor

Marc-Andre-Rivet commented Jul 10, 2019

Discussion notes: Add a clearable nested prop to columns that has the same type as deletable -- some "eraser" icon will represent it. It will behave just like delete but will not delete the columns. To be improved in #495.

@Marc-Andre-Rivet
Copy link
Contributor

The current column.deletable action implementation prevents the x from being displayed if the pagination is custom (not controlled by the table), the current implementation of column.clearable will use the same limitation.

If a filtering expression is applied on a column of which the contents are deleted, the filter will be cleared as well.

This is not being done for column.deletable right now. As this is implemented for column.clearable, it should behave the same for the other.

@Marc-Andre-Rivet Marc-Andre-Rivet changed the title Ability to clear the contents of a column [Sponsored: Due May 1] Ability to clear the contents of a column Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-meta-sponsored Development that has been sponsored by an organization https://plot.ly/products/consulting-and-oem/ dash-type-enhancement New feature or request size: 3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants