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

✨ EditGrid: UiDelete to use preview_yaml_string #324

Open
ollyhensby opened this issue Jun 17, 2024 · 0 comments
Open

✨ EditGrid: UiDelete to use preview_yaml_string #324

ollyhensby opened this issue Jun 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ollyhensby
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I think it would look better if when warn_on_delete is set to True, for the preview to be YAML instead of JSON.

Describe the solution you'd like
In the code, set _update_display method to:

def _update_display(self):
        with self.out_delete:
            clear_output()
            display(preview_yaml_string(yaml.dump(self.value_summary))) 

The output will look like this:

image

@ollyhensby ollyhensby added the enhancement New feature or request label Jun 17, 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
Projects
None yet
Development

No branches or pull requests

1 participant