init column config menu

This commit is contained in:
Bradley Cicenas
2020-01-02 23:02:53 +00:00
parent 6e60fc905e
commit 22a5607012
9 changed files with 117 additions and 15 deletions

View File

@@ -42,6 +42,12 @@ func New(id string, collector collector.Collector, manager manager.Manager) *Con
}
}
func (c *Container) RecreateWidgets() {
c.SetUpdater(cwidgets.NullWidgetUpdater{})
c.Widgets = compact.NewCompactRow()
c.SetUpdater(c.Widgets)
}
func (c *Container) SetUpdater(u cwidgets.WidgetUpdater) {
c.updater = u
c.updater.SetMeta(c.Meta)