gradio
600c97c8 - Allow viewing JSON as list or dict with `show_indices` param (#8932)

Commit
1 year ago
Allow viewing JSON as list or dict with `show_indices` param (#8932) * add line numbers and collapse + expand logic * add story test and style tweaks * add changeset * allow expanding via preview * story tweaks * remove mobile/desktop story tests * remove unused thing * add mode param to view json as list * add story * add changeset * add open param * amend test * * add cm-like theme colors * prevent copy + pasting line numbers and toggle * a11y tweaks * remove mode as param and default to list view * Revert "remove mode as param and default to list view" This reverts commit 9051f15c5f2a90627100a56a4d7d3b5549906ce4. * Update gradio/components/json_component.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * add changeset * tweak * fix nit --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Author
Parents
Loading