confirmationmodal

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Message       string
	ConfirmButton string
	CancelButton  string
	ConfirmCmd    tea.Cmd
	CancelCmd     tea.Cmd
	// contains filtered or unexported fields
}

func NewConfirmationModal

func NewConfirmationModal(message, confirmButton, cancelButton string, confirmCmd, cancelCmd tea.Cmd) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetCancelButtonLabel

func (m *Model) SetCancelButtonLabel(cancelButton string)

func (*Model) SetConfirmButtonLabel

func (m *Model) SetConfirmButtonLabel(confirmButton string)

func (*Model) SetMessage

func (m *Model) SetMessage(message string)

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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