Documentation
¶
Index ¶
- Variables
- 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 BlockSelectedMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var Styles = struct { Box lipgloss.Style SelectedBlock lipgloss.Style CurrentBlock lipgloss.Style Bar 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), Bar: lipgloss.NewStyle().Background(lipgloss.Color("235")), }
Functions ¶
This section is empty.
Types ¶
type BlockSelect ¶
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 BlockSelectedMsg ¶
type BlockSelectedMsg uint64
Click to show internal directories.
Click to hide internal directories.