Sidebar DSL
Sidebar DSL
Section titled “Sidebar DSL”Main types
Section titled “Main types”DaisySidebarDaisySidebarLineDaisySidebarRenderContextDaisySidebarSessionDaisyScoreboardPlatform
Main entrypoint
Section titled “Main entrypoint”fun sidebar(block: DaisySidebarBuilder.() -> Unit): DaisySidebarCommon builder methods
Section titled “Common builder methods”title(Component)title(renderer)line(key, renderer)lineIf(key, visible, renderer)blank()options { ... }
Important behavior
Section titled “Important behavior”- line keys should be unique
- blank lines are supported, but DaisyCore still gives them internal unique identity
- sidebars are limited to the normal sidebar line budget
invalidate(vararg keys)is for targeted refreshes, whileinvalidate()refreshes the full session
Read next
Section titled “Read next”- Tutorial: First Scoreboard
- Concepts: Sidebar Refresh and Diffing