MCPcopy Create free account
hub / github.com/lxn/walk / SetCheckable

Method SetCheckable

action.go:106–119  ·  view source on GitHub ↗
(value bool)

Source from the content-addressed store, hash-verified

104}
105
106func (a *Action) SetCheckable(value bool) (err error) {
107 if value != a.checkable {
108 old := a.checkable
109
110 a.checkable = value
111
112 if err = a.raiseChanged(); err != nil {
113 a.checkable = old
114 a.raiseChanged()
115 }
116 }
117
118 return
119}
120
121func (a *Action) Checked() bool {
122 return a.checked

Callers 2

createActionMethod · 0.95
newPageActionMethod · 0.95

Calls 1

raiseChangedMethod · 0.95

Tested by

no test coverage detected