blockselect

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

type BlockSelect struct {
	common.Common
	// 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) Update

func (b *BlockSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*BlockSelect) View

func (b *BlockSelect) View() string

type BlockSelectedMsg

type BlockSelectedMsg uint64

Jump to

Keyboard shortcuts

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