Chagned Checkbox.OnClicked() to Checkbox.OnToggled(). The code restructure will allow this.
This commit is contained in:
parent
d018953d7e
commit
ac5c577507
|
@ -23,9 +23,8 @@ func NewButton(text string) Button {
|
||||||
type Checkbox interface {
|
type Checkbox interface {
|
||||||
Control
|
Control
|
||||||
|
|
||||||
// OnClicked sets the event handler for when the Checkbox is clicked (to change its toggle state).
|
// OnToggled sets the event handler for when the Checkbox is toggled.
|
||||||
// TODO change to OnToggled() or OnChecked()?
|
OnToggled(func())
|
||||||
OnClicked(func())
|
|
||||||
|
|
||||||
// Text and SetText get and set the Checkbox's label text.
|
// Text and SetText get and set the Checkbox's label text.
|
||||||
Text() string
|
Text() string
|
||||||
|
|
Loading…
Reference in New Issue