button

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnResponseFunc added in v0.1.2

type OnResponseFunc func(response *Response) tea.Cmd

type Response

type Response struct {
	Error error
	// contains filtered or unexported fields
}

func (*Response) OnResponse

func (r *Response) OnResponse(msg bubbleviews.ResponseMessage) tea.Cmd

func (*Response) View

func (r *Response) View() bubbleviews.View

type View

type View struct {
	// contains filtered or unexported fields
}

func New

func New(format string, a ...any) *View

func (*View) Blur

func (m *View) Blur()

func (*View) Focus

func (m *View) Focus()

func (*View) FocusStyle

func (m *View) FocusStyle() lipgloss.Style

func (*View) FocusText

func (m *View) FocusText() string

func (*View) Focused

func (m *View) Focused() bool

func (*View) Init

func (m *View) Init() tea.Cmd

func (*View) OnResponse

func (m *View) OnResponse() OnResponseFunc

func (*View) SetFocusStyle

func (m *View) SetFocusStyle(style lipgloss.Style)

func (*View) SetFocusText

func (m *View) SetFocusText(format string, a ...any)

func (*View) SetOnResponse added in v0.1.2

func (m *View) SetOnResponse(fn OnResponseFunc)

func (*View) SetStyle

func (m *View) SetStyle(style lipgloss.Style)

func (*View) SetText

func (m *View) SetText(format string, a ...any)

func (*View) Style

func (m *View) Style() lipgloss.Style

func (*View) Text

func (m *View) Text() string

func (*View) Update

func (m *View) Update(msg tea.Msg) tea.Cmd

func (*View) View

func (m *View) View() string

Jump to

Keyboard shortcuts

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