https://kotlinlang.org logo
#doodle
Title
# doodle
s

Stan

03/24/2023, 6:21 PM
Copy code
I am trying to figure out how to use `TabbedPanel`.
<https://nacular.github.io/doodle/docs/ui_components/overview#tabbedpanel>

The Demo code shows `TextVisualizer(textMetrics)` taking a `textMetrics` param, but it takes a `Set<Dimension>?` param instead.

I can pass null instead.  Do I not understand the param's class hierarchy?

Anyway, I pass null, to come to the next issue in the Demo code:

`
override fun invoke(item: View, previous: View?, context: Any) =
        textVisualizer(mapping[item] ?: "Unknown")
`

Error:  "No value passed for parameter 'context'"
What do I use for a context?
4 Views