类型 ButtonAction
API 文档由 Go 源码生成,内容为英文。
type ButtonAction struct {
ID ui.ID
Label string
Variant ButtonVariant
Disabled bool
}ButtonAction is one button of a ButtonRow. ID is the application's stable hit identity. The zero Variant is the primary Default button, so the confirming action needs no variant at all.