Skip to content

[✨ FEATURE] Allow resetting sort for taipy tables #2607

@arcanaxion

Description

@arcanaxion

πŸ” Feature Description

After clicking a column to sort, I can only toggle between asc and desc sort. It would be good to have 3rd state which is the unsorted // reset state.

Example:

import taipy.gui.builder as tgb
from taipy import Gui

data = {"Sentence": "Eddie ate dynamite, good bye Eddie".split(" ")}

with tgb.Page() as page:
    tgb.table("{data}")

if __name__ == "__main__":
    Gui(page=page).run()

After clicking the column to sort, I'm unable to reset the sort unless I refresh the page:

Image

πŸ’‘ Proposed Solution

Clicking the col header to sort could toggle from unsorted -> asc -> desc -> unsorted

πŸ“œ Code of Conduct

  • I have checked the existing issues to avoid duplicates.
  • I am willing to work on this issue (optional)

βœ… Acceptance Criteria

  • A working demo or example code (if applicable) is provided.
  • Integration tests demonstrate the new functionality.
  • Any new code is covered by unit tests.
  • Code coverage remains at least 90%.
  • Related documentation updates and release notes are created.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions