Documentation ¶
Index ¶
- Variables
- type BlockChangedMsg
- type BlockSelect
- func (b *BlockSelect) Init() tea.Cmd
- func (b *BlockSelect) SetActiveBlock(blockNum uint64)
- func (b *BlockSelect) SetAvailableBlocks(blocks []uint64)
- func (b *BlockSelect) StretchBounds(low, high uint64)
- func (b *BlockSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (b *BlockSelect) View() string
- type JumpToBlockMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var Styles = struct { Box lipgloss.Style SelectedBlock lipgloss.Style CurrentBlock lipgloss.Style searchUnmatchedBlock lipgloss.Style searchMatchedBlock lipgloss.Style }{ Box: lipgloss.NewStyle().Border(lipgloss.NormalBorder(), true), SelectedBlock: lipgloss.NewStyle().Foreground(lipgloss.Color("12")).Bold(true), CurrentBlock: lipgloss.NewStyle().Foreground(lipgloss.Color("12")).Bold(true), // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type BlockChangedMsg ¶ added in v1.1.1
type BlockChangedMsg uint64
type BlockSelect ¶
type BlockSelect struct { common.Common BlocksWithData []uint64 // contains filtered or unexported fields }
func New ¶
func New(c common.Common) *BlockSelect
func (*BlockSelect) Init ¶
func (b *BlockSelect) Init() tea.Cmd
func (*BlockSelect) SetActiveBlock ¶
func (b *BlockSelect) SetActiveBlock(blockNum uint64)
func (*BlockSelect) SetAvailableBlocks ¶
func (b *BlockSelect) SetAvailableBlocks(blocks []uint64)
func (*BlockSelect) StretchBounds ¶
func (b *BlockSelect) StretchBounds(low, high uint64)
func (*BlockSelect) View ¶
func (b *BlockSelect) View() string
type JumpToBlockMsg ¶ added in v1.1.1
type JumpToBlockMsg uint64
Click to show internal directories.
Click to hide internal directories.