Documentation
¶
Index ¶
- Constants
- func Close()
- func Init() error
- type Form
- type Header
- type Item
- type ItemType
- type Menu
- type MenuOption
- type Modale
- type ModaleOption
- type ModaleType
- type Screen
- func (s *Screen) HandleEvents()
- func (s *Screen) Render()
- func (s *Screen) RenderModale(msg string, t ModaleType)
- func (s *Screen) Resize()
- func (s *Screen) Restore()
- func (s *Screen) Run()
- func (s *Screen) SetForm(f *Form)
- func (s *Screen) SetMenu(m *Menu)
- func (s *Screen) SetModale(m *Modale)
- func (s *Screen) Stop()
- type Status
Constants ¶
View Source
const ( Running = iota Stopped )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Form ¶
func (*Form) HandleEvent ¶
HandleEvent implements Item interface
type Header ¶
func (*Header) HandleEvent ¶
HandleEvent implements Item interface
type Menu ¶
type Menu struct {
Options *widgets.List
Description *widgets.Paragraph
// contains filtered or unexported fields
}
func (*Menu) AddOption ¶
func (m *Menu) AddOption(o MenuOption)
func (*Menu) AddOptions ¶
func (m *Menu) AddOptions(os []MenuOption)
func (*Menu) HandleEvent ¶
HandleEvent implements Item interface
type MenuOption ¶
type Modale ¶
type Modale struct {
Text *widgets.Paragraph
Type ModaleType
}
func NewModale ¶
func NewModale(s string, t ModaleType) *Modale
func (*Modale) HandleEvent ¶
HandleEvent implements Item interface
type ModaleOption ¶
type ModaleType ¶
type ModaleType int
const ( ModaleTypeInfo ModaleType = iota ModaleTypeErr ModaleTypeWrn )
type Screen ¶
type Screen struct {
Headers *Header
Items []Item
FocusedItem Item
// contains filtered or unexported fields
}
func (*Screen) HandleEvents ¶
func (s *Screen) HandleEvents()
func (*Screen) RenderModale ¶
func (s *Screen) RenderModale(msg string, t ModaleType)
Click to show internal directories.
Click to hide internal directories.