View Mode is Working

This commit is contained in:
2026-01-22 16:29:26 -06:00
parent aae6b437b6
commit fddf514853
2 changed files with 66 additions and 35 deletions

View File

@@ -45,7 +45,10 @@ type JsonContent struct {
focusable bool
keyMap *wd.KeyMap
value any
editable bool
value any
activeNode []string
}
var _ wd.Widget = (*JsonContent)(nil)
@@ -117,6 +120,8 @@ func (w *JsonContent) SetValue(v any) error {
return nil
}
func (w *JsonContent) SetEditable(v bool) { w.editable = v }
/*
func (w *JsonContent) SetJsonContent(txt string) {
w.text = txt