functions
NewVerticalList| modified | Sunday 25 January 2026 |
|---|
Category: Widgets
File: lists.go
Package: ui
1func NewVerticalList() List
NewVerticalList creates a new vertical scrollable list widget.
The list automatically handles scrolling and viewport management.
Example:
list := NewVerticalList()
widget := func(c C) D {
return list.Layout(c, 100, func(c C, i int) D {
return Label(fmt.Sprintf("Item %d", i))(c)
})
}
Use with list.Layout to render elements with virtualization for performance.
1{
2 list := NewVerticalList()
3 widget := func(c C) D {
4 return list.Layout(c, 10, func(c C, i int) D {
5 return Label(fmt.Sprintf("Item %d", i))(c)
6 })
7 }
8 _ = widget
9}

This documentation is auto-generated. To update, run make docs