Work
This commit is contained in:
5
table.go
5
table.go
@@ -71,12 +71,13 @@ const (
|
||||
|
||||
func NewTable(id string, style tcell.Style) *Table {
|
||||
ret := &Table{style: style}
|
||||
ret.Init(id)
|
||||
ret.Init(id, style)
|
||||
return ret
|
||||
}
|
||||
|
||||
func (w *Table) Init(id string) {
|
||||
func (w *Table) Init(id string, style tcell.Style) {
|
||||
w.id = id
|
||||
w.style = style
|
||||
w.visible = true
|
||||
}
|
||||
func (w *Table) Id() string { return w.id }
|
||||
|
||||
Reference in New Issue
Block a user