MCPcopy
hub / github.com/mum4k/termdash / PlaceWidget

Function PlaceWidget

container/options.go:463–470  ·  view source on GitHub ↗

PlaceWidget places the provided widget into the container. The use of this option removes any sub containers. Containers with sub containers cannot have widgets.

(w widgetapi.Widget)

Source from the content-addressed store, hash-verified

461// The use of this option removes any sub containers. Containers with sub
462// containers cannot have widgets.
463func PlaceWidget(w widgetapi.Widget) Option {
464 return option(func(c *Container) error {
465 c.opts.widget = w
466 c.first = nil
467 c.second = nil
468 return nil
469 })
470}
471
472// MarginTop sets reserved space outside of the container at its top.
473// The provided number is the absolute margin in cells and must be zero or a

Callers 15

ExampleFunction · 0.92
Example_triggeredFunction · 0.92
TestRunFunction · 0.92
TestControllerFunction · 0.92
buildFunction · 0.92
newDashboardTabFunction · 0.92
newControlsTabFunction · 0.92
newVisualizeTabFunction · 0.92
newExplorerTabFunction · 0.92
previewPaneFunction · 0.92
explorerWidgetPreviewFunction · 0.92
explorerControlPreviewFunction · 0.92

Calls 1

optionFuncType · 0.70

Tested by 15

ExampleFunction · 0.74
Example_triggeredFunction · 0.74
TestRunFunction · 0.74
TestControllerFunction · 0.74
newTestTabFunction · 0.74
newPartialDemoContainerFunction · 0.74
ExampleFunction · 0.68
TestNewFunction · 0.68