Documentation ¶ Index ¶ type Button func New(id int, label string, btntype utils.ButtonType, callback tea.Msg) Button func (b Button) Data() interface{} func (b Button) Set(lbl string) Button func (b Button) Update(msg tea.Msg) (obj.Element, tea.Cmd) func (b Button) View(focused bool) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Button ¶ type Button struct { obj.ElementWithID obj.ElementWithCallback // contains filtered or unexported fields } func New ¶ func New(id int, label string, btntype utils.ButtonType, callback tea.Msg) Button func (Button) Data ¶ func (b Button) Data() interface{} implementing Accessor func (Button) Set ¶ added in v1.3.3 func (b Button) Set(lbl string) Button special func (Button) Update ¶ func (b Button) Update(msg tea.Msg) (obj.Element, tea.Cmd) implementing Element func (Button) View ¶ func (b Button) View(focused bool) string Source Files ¶ View all Source files button.go Click to show internal directories. Click to hide internal directories.