bug fixes and clean code
This commit is contained in:
+3
-2
@@ -24,8 +24,9 @@ func (h *HelloComponent) Update(key string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (h *HelloComponent) SetStyle(c interface{}) {
|
||||
h.Style = osui.SetDefaults(c.(*HelloStyle)).(*HelloStyle)
|
||||
func (b *MenuComponent) Params(param MenuParams) *MenuComponent {
|
||||
b.Style = osui.SetDefaults(¶m.Style).(*MenuStyle)
|
||||
return b
|
||||
}
|
||||
|
||||
func Hello(name string) *HelloComponent {
|
||||
|
||||
Reference in New Issue
Block a user