Documentation
¶
Index ¶
- type ConfirmPrompt
- func (b ConfirmPrompt) Answered() bool
- func (b *ConfirmPrompt) Blur()
- func (b ConfirmPrompt) Confirmed() bool
- func (b ConfirmPrompt) Declining() bool
- func (b *ConfirmPrompt) Focus()
- func (b ConfirmPrompt) Focused() bool
- func (b ConfirmPrompt) Update(msg tea.Msg) (ConfirmPrompt, tea.Cmd)
- func (b ConfirmPrompt) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmPrompt ¶
type ConfirmPrompt struct {
Question string
Style lipgloss.Style
ReasonStyle lipgloss.Style
OnConfirm tea.Cmd
// OnDecline is called when the user declines, with an optional reason
// string entered by the user. May be nil.
OnDecline func(reason string) tea.Msg
// AskReason shows a reason input when the user declines. The entered
// reason is passed to OnDecline. Only meaningful when OnDecline is non-nil.
AskReason bool
// contains filtered or unexported fields
}
func NewConfirmPrompt ¶
func (ConfirmPrompt) Answered ¶
func (b ConfirmPrompt) Answered() bool
func (*ConfirmPrompt) Blur ¶
func (b *ConfirmPrompt) Blur()
func (ConfirmPrompt) Confirmed ¶
func (b ConfirmPrompt) Confirmed() bool
func (ConfirmPrompt) Declining ¶
func (b ConfirmPrompt) Declining() bool
func (*ConfirmPrompt) Focus ¶
func (b *ConfirmPrompt) Focus()
func (ConfirmPrompt) Focused ¶
func (b ConfirmPrompt) Focused() bool
func (ConfirmPrompt) Update ¶
func (b ConfirmPrompt) Update(msg tea.Msg) (ConfirmPrompt, tea.Cmd)
func (ConfirmPrompt) View ¶
func (b ConfirmPrompt) View() string
Click to show internal directories.
Click to hide internal directories.