buttons and styles

This commit is contained in:
2024-09-28 17:12:45 +02:00
parent 5a94fc34ad
commit 90f106f127
10 changed files with 218 additions and 80 deletions
+2 -2
View File
@@ -97,8 +97,8 @@ func (p *PaginatorComponent) SetStyle(c interface{}) {
}
func Paginator(pages ...osui.Component) *PaginatorComponent {
return &PaginatorComponent{
return osui.NewComponent(&PaginatorComponent{
Components: pages,
Style: osui.SetDefaults(&PaginatorStyle{}).(*PaginatorStyle),
}
}).(*PaginatorComponent)
}