Skip to content

Render objects and arrays using JSON.stringify() instead of String() - #283

Open
andrej-petrovic wants to merge 2 commits into
antonycourtney:masterfrom
andrej-petrovic:stringify-objects
Open

Render objects and arrays using JSON.stringify() instead of String()#283
andrej-petrovic wants to merge 2 commits into
antonycourtney:masterfrom
andrej-petrovic:stringify-objects

Conversation

@andrej-petrovic

Copy link
Copy Markdown

I believe this closes #273.

I adjusted the defaultValRender function in reltab to use JSON.stringify() for objects. This lets Tad show the object's fields instead of just showing [Object object].

In order for copy-pasting to work with this logic, I also changed the copySelectedRange function to use the respective column formatter instead of taking the raw value. For some reason, this doesn't seem to respect custom column formatting rules, but it didn't do that before this change either, so I figured that it's probably out of scope for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't support object fields in Parquet

1 participant