widget

package
v0.0.0-...-6473eef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GridLayout

func GridLayout(storage *utils.Storage) []container.Option

Types

type Modal struct {
	*text.Text
	// contains filtered or unexported fields
}

func NewModal

func NewModal(storage *utils.Storage) (*Modal, error)

func (*Modal) RemoveIndex

func (m *Modal) RemoveIndex() bool

func (*Modal) Select

func (m *Modal) Select() (ModalType, error)

func (*Modal) SelectIndex

func (m *Modal) SelectIndex(index string) bool

func (*Modal) Show

func (m *Modal) Show(options *ModalOptions) bool

type ModalOptions

type ModalOptions struct {
	Type          ModalType
	VariableIndex int
}

type ModalType

type ModalType string
const (
	ModalTypeDashboard  ModalType = "Dashboard"
	ModalTypeDatasource ModalType = "Datasource"
	ModalTypeVariable   ModalType = "Variable"
	ModalTypeInterval   ModalType = "Interval"
	ModalTypeRefresh    ModalType = "Refresh"
	ModalTypeExplore    ModalType = "Explore"
)

type Statusbar

type Statusbar struct {
	*text.Text
	// contains filtered or unexported fields
}

func NewStatusbar

func NewStatusbar(termWidth int, storage *utils.Storage) (*Statusbar, error)

func (*Statusbar) Update

func (s *Statusbar) Update(termWidth int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL