confirm

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfirmation

func GetConfirmation(q string, c Confirm) tea.Cmd

Types

type Component

type Component struct {
	reactea.BasicComponent
	reactea.BasicPropfulComponent[Props]
	// contains filtered or unexported fields
}

func New

func New() *Component

func (*Component) Confirmed

func (c *Component) Confirmed(y bool) tea.Cmd

func (*Component) KeyMap

func (c *Component) KeyMap() keys.KeyMap

func (*Component) Render

func (c *Component) Render(w, h int) string

func (*Component) Update

func (c *Component) Update(msg tea.Msg) tea.Cmd

type Confirm

type Confirm func(bool) tea.Cmd

type GetConfirmationMsg

type GetConfirmationMsg struct {
	Props
}

type Props

type Props struct {
	Question string
	Confirm  Confirm
}

Jump to

Keyboard shortcuts

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