mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Nowrap text on widget that don't need to wrap text
This commit is contained in:
committed by
Chris Cummer
parent
2f63a56eae
commit
da8220ff0d
@@ -6,20 +6,21 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/rivo/tview"
|
||||
"github.com/senorprogrammer/wtf/wtf"
|
||||
)
|
||||
|
||||
type Widget struct {
|
||||
Name string
|
||||
RefreshedAt time.Time
|
||||
RefreshInterval int
|
||||
View *tview.TextView
|
||||
wtf.BaseWidget
|
||||
View *tview.TextView
|
||||
}
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
Name: "Status",
|
||||
RefreshedAt: time.Now(),
|
||||
RefreshInterval: 1,
|
||||
BaseWidget: wtf.BaseWidget{
|
||||
Name: "Status",
|
||||
RefreshedAt: time.Now(),
|
||||
RefreshInterval: 1,
|
||||
},
|
||||
}
|
||||
|
||||
widget.addView()
|
||||
|
||||
Reference in New Issue
Block a user