Documentation
¶
Index ¶
- func CancelModalCmd() tea.Cmd
- func EmitBlockSelectedMsg(blockNum uint64) tea.Cmd
- func EmitModuleSelectedCmd(moduleName, target string) tea.Cmd
- func ErrorCmd(err error) tea.Cmd
- func SetModalComponentCmd(comp Component) tea.Cmd
- func SetRequestValueCmd(field, value string) tea.Cmd
- func ShortToFullHelp(comp Component) [][]key.Binding
- func TruncateString(s string, max int) string
- type BlockSelectedMsg
- type CancelModalMsg
- type Common
- type Component
- type ErrorMsg
- type GoToOutputMsg
- type IsFullWidthModal
- type IsInlineModal
- type ModuleSelectedMsg
- type SetModalComponentMsg
- type SetRequestValue
- type SimpleHelp
- type UpdateSeenModulesMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelModalCmd ¶ added in v1.10.0
func EmitBlockSelectedMsg ¶ added in v1.1.1
func EmitModuleSelectedCmd ¶ added in v1.10.0
func SetModalComponentCmd ¶ added in v1.10.0
func SetRequestValueCmd ¶ added in v1.10.0
func ShortToFullHelp ¶ added in v1.10.0
func TruncateString ¶
TruncateString is a convenient wrapper around truncate.TruncateString.
Types ¶
type BlockSelectedMsg ¶ added in v1.1.1
type BlockSelectedMsg uint64 // Emitted to inform all components that a new block has been selected.
type CancelModalMsg ¶ added in v1.10.0
type CancelModalMsg struct{} // Emitted by components to close itselt
type Component ¶
type Component interface { tea.Model help.KeyMap SetSize(width, height int) GetWidth() int GetHeight() int }
Component represents a Bubble Tea model that implements a SetSize function.
type GoToOutputMsg ¶ added in v1.10.0
type GoToOutputMsg struct{}
type IsFullWidthModal ¶ added in v1.10.0
type IsFullWidthModal interface {
IsFullWidthModal()
}
type IsInlineModal ¶ added in v1.10.0
type IsInlineModal interface {
IsInlineModal()
}
type ModuleSelectedMsg ¶ added in v1.1.1
type SetModalComponentMsg ¶ added in v1.10.0
type SetModalComponentMsg Component
type SetRequestValue ¶ added in v1.10.0
type SimpleHelp ¶ added in v1.10.0
func NewSimpleHelp ¶ added in v1.10.0
func NewSimpleHelp(bindings ...key.Binding) SimpleHelp
func (SimpleHelp) FullHelp ¶ added in v1.10.0
func (h SimpleHelp) FullHelp() [][]key.Binding
func (SimpleHelp) ShortHelp ¶ added in v1.10.0
func (h SimpleHelp) ShortHelp() []key.Binding
type UpdateSeenModulesMsg ¶ added in v1.1.1
type UpdateSeenModulesMsg []string
Click to show internal directories.
Click to hide internal directories.