dialog

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

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

func Default

func Default(id string) Dialog

func (*Dialog) Close

func (dialog *Dialog) Close()

Close the dialog

func (*Dialog) ID

func (dialog *Dialog) ID() string

func (*Dialog) Init

func (dialog *Dialog) Init() tea.Cmd

func (*Dialog) IsButtonClicked

func (dialog *Dialog) IsButtonClicked(id string, msg tea.MouseMsg) bool

func (*Dialog) IsOpen

func (dialog *Dialog) IsOpen() bool

func (*Dialog) Open

func (dialog *Dialog) Open()

Open the dialog

func (*Dialog) SetModel

func (dialog *Dialog) SetModel(model tea.Model)

func (*Dialog) SetTitle

func (dialog *Dialog) SetTitle(title string)

func (*Dialog) SetView

func (dialog *Dialog) SetView(view string)

type DialogButton

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

type Model

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

func New

func New() Model

func (*Model) Dialog

func (model *Model) Dialog() *Dialog

func (*Model) SetDialog

func (model *Model) SetDialog(dialog *Dialog)

func (*Model) Update

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

func (*Model) View

func (model *Model) View() string

Jump to

Keyboard shortcuts

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