Work
This commit is contained in:
@@ -45,13 +45,14 @@ type MenuItem struct {
|
||||
}
|
||||
|
||||
func NewMenuItem(id string, style tcell.Style) *MenuItem {
|
||||
ret := &MenuItem{style: style}
|
||||
ret.Init(id)
|
||||
ret := &MenuItem{}
|
||||
ret.Init(id, style)
|
||||
return ret
|
||||
}
|
||||
|
||||
func (w *MenuItem) Init(id string) {
|
||||
func (w *MenuItem) Init(id string, style tcell.Style) {
|
||||
w.id = id
|
||||
w.style = style
|
||||
w.visible = true
|
||||
}
|
||||
func (w *MenuItem) Id() string { return w.id }
|
||||
|
||||
Reference in New Issue
Block a user