alert

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UIAlert

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

func NewUIAlert

func NewUIAlert(title, message string) *UIAlert

NewUIAlert 创建一个标准的模态对话框

func NewUIModal

func NewUIModal(title string, width, height int, customView view.Viewable) *UIAlert

NewUIModal 创建一个嵌入自定义 UIView 的模态对话框

func (*UIAlert) Hide

func (a *UIAlert) Hide()

func (*UIAlert) OnCancel

func (a *UIAlert) OnCancel(cb func())

func (*UIAlert) OnConfirm

func (a *UIAlert) OnConfirm(cb func())

func (*UIAlert) Show

func (a *UIAlert) Show()

Jump to

Keyboard shortcuts

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