mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Migrate from NewModel() to New() in examples for Bubbles-related stuff
This commit is contained in:
@@ -74,7 +74,7 @@ func main() {
|
||||
item{title: "Terrycloth", desc: "In other words, towel fabric"},
|
||||
}
|
||||
|
||||
m := model{list: list.NewModel(items, list.NewDefaultDelegate(), 0, 0)}
|
||||
m := model{list: list.New(items, list.NewDefaultDelegate(), 0, 0)}
|
||||
m.list.Title = "My Fave Things"
|
||||
|
||||
p := tea.NewProgram(m, tea.WithAltScreen())
|
||||
|
||||
Reference in New Issue
Block a user