(value any)
| 68 | func (sw *Switch) WidgetValue() any { return sw.IsChecked() } |
| 69 | |
| 70 | func (sw *Switch) SetWidgetValue(value any) error { |
| 71 | b, err := reflectx.ToBool(value) |
| 72 | if err != nil { |
| 73 | return err |
| 74 | } |
| 75 | sw.SetChecked(b) |
| 76 | return nil |
| 77 | } |
| 78 | |
| 79 | func (sw *Switch) OnBind(value any, tags reflect.StructTag) { |
| 80 | if d, ok := tags.Lookup("display"); ok { |
nothing calls this directly
no test coverage detected