I am displaying a table in a notebook dashboard. One column of the data is conceptually a list of strings. I can originate or convert the list as whatever format would be useful (as a string representing a JSON array, as an ARRAY struct, etc.).
I want to display this list in the dashboard in a multiline format that would be conceptually equivalent to showing someone a list of bullet points.
To be clear, I'm ok with a new solution if you have one, rather than a fix to any of my partial solutions below.
My two solutions that are almost good enough are:
Method 1) Display the column as a string where the list items have been joined/concatenated with '\n' as a separator. This results in something like the second column of:
Row 2 shows this as a good solution. However, when you open the dashboard, the cells in that column all display at first as unexpanded, like row 1. You have to click each dropdown arrow to expand the list vertically. Is there a way to manipulate the data column or the dashboard conditions so that the default display mode would show the cells in their vertically expanded condition?
Method 2) Turn the data column in to a struct ARRAY of text strings, i.e., an actual list of the individual bullet points. Then it displays as follows:
x
x
This is less satisfying visually than Method 1, because of showing all that punctuation. But it's still an admissible solution, except that it has the same defect as Method 1 -- it defaults to the lists being unexpanded, and you have to click each list to expand it. (That problem is actually worse here, because the unexpanded list on row 1 doesn't make any of the text visible at all.) Even so, is there a way to default the lists to expanded?
Method 3) I haven't tried this yet ... something involving EXPLODE applied to the struct ARRAY. I anticipate that this would be unsatisfactory, because the other columns not being exploded would be repeated on each of the rows created by the EXPLODE operation, and that is not what I want visually.