MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Trigger

Method Trigger

contents.go:384–397  ·  view source on GitHub ↗
(triggerType int)

Source from the content-addressed store, hash-verified

382}
383
384func (cc *CheckboxContents) Trigger(triggerType int) {
385
386 prop := cc.Card.Properties.Get("checked")
387
388 switch triggerType {
389 case TriggerTypeSet:
390 prop.Set(true)
391 case TriggerTypeClear:
392 prop.Set(false)
393 case TriggerTypeToggle:
394 prop.Set(!prop.AsBool())
395 }
396
397}
398
399func (cc *CheckboxContents) CompletionLevel() float32 {
400

Callers

nothing calls this directly

Calls 3

AsBoolMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected