Render table to JSON #379
decentral1se
started this conversation in
Ideas
Replies: 1 comment
-
|
Hey, I'm not sure about having this kind of behaviour handled by Lip Gloss itself. What do you think about having it handled by a helper library instead? Lip Gloss Convert is a great example of this. I'm going to move this to a discussion to keep the conversation open! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I want to render my
lipgloss.Tableas JSON.Describe the solution you'd like
Guessing at an API surface:
lipgloss.Table.ToJSON()Describe alternatives you've considered
Gather results separately from the
lipgloss.Tableand render myself. There is currently no way to get the raw data you put intolipgloss.TableviaHeader/Row(s)back out again. So you need to do additional bookkeeping to render stuff later on.Additional context
A sub-request is probably an API surface to retrieve the data that you put in without additional bookkeeping (e.g.
GetHeaders()) 🙃 In the case you don't want to implement a full JSON rendering API surface.Beta Was this translation helpful? Give feedback.
All reactions