D3vugu-components/components/input/button.go
David Vogel e722ae1d2b Add pagination component
- Add and update example pages
- Add example address component
- Add vugu data tags to struct fields
- Fix some button padding values
- Remove debug log line
- Fix background color of the sidebar menu
2023-05-16 18:10:24 +02:00

19 lines
397 B
Go

package input
import "github.com/vugu/vugu"
type Button struct {
AttrMap vugu.AttrMap
SymbolSlot vugu.Builder `vugu:"data"` // Slot for the symbol.
DefaultSlot vugu.Builder `vugu:"data"`
Click ClickHandler // External handler that is called upon an event.
}
func (c *Button) HandleClick(event vugu.DOMEvent) {
if c.Click != nil {
c.Click.ClickHandle(ClickEvent{DOMEvent: event})
}
}