Thanks to visit codestin.com
Credit goes to github.com

Skip to content

data_editor: num_rows - option to allow for only adding or only deleting rows #7091

@bruestles

Description

@bruestles

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

I love that the new data_editor allows for num_rows = “dynamic” or “fixed”. I’d like to suggest having another option that allows for adding but not deleting.

Why?

Deleting rows is often a scary thing. I like the ability to delete but I want to do it in a more controlled manner. I’m implementing an option that includes a column the user can check. If it’s checked then the process of deleting is done in the background where I save the row to a backup dataframe in case we need to retrieve it.

How?

Allow for a new option for the num_rows parameter in data_editor, called "add" or something similar.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.data_editorRelated to the `st.data_editor` widgetgood first issueGood for newcomers to the codebasetype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions