Having a hard time getting the Text for the Tabs t...
# doodle
r
Having a hard time getting the Text for the Tabs to display. Still trying to grasp how to do things with Doodle. I have installed the module.
Copy code
fun main() {
    application(modules = listOf(
        PointerModule,
        basicTabbedPanelBehavior(),
        Module(name = "AppModule") {

        bindSingleton<Animator> { AnimatorImpl(instance(), instance()) }
        bindSingleton<PathMetrics> { PathMetricsImpl(instance()) }

    })) {
        /* Load app */
        DoodleApp(
            display = instance(),
            animator = instance(),
            pathMetrics = instance(),
            themeManager = instance(),
            theme = instance())
    }
}
I have a class that holds a reference to the TabbedPanel
Copy code
val tabbedPanel = TabbedPanel(
    visualizer    = ScrollPanelVisualizer(),
    tabVisualizer = itemVisualizer { item,_,_ -> textVisualizer(mapping[item] ?: "Unknown") },
    myAppointments,
    available
).apply {

    size = Size(1240, 500)
    Resizer(this).apply { movable = false}
    behavior = BasicTabbedPanelBehavior(BasicTabProducer())


}
It renders the TabbedPanel with white tabs and not text. Any suggestions or explanations. I did review the thread from stan but fell short on understanding.
n
hey @robert, glad to hear you’re trying Doodle. it looks like you’re missing a
Behavior
for the `Label`s that will be generated by
textVisualizer
. try including the
basicLabelBehavior()
module (like you did for the
basicTabbedPanelBehavior()
).
r
Worked!! Thanks. Really cool project, motivated me to start learning Kotlin since it enables me to build for more platforms. Thanks alot.
❤️ 1