This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_2_180) is shown here.
collapse_expand(item)
public
Recursively collapse/expand a subtree starting from the selected node.
# File ext/json/lib/json/editor.rb, line 444
def collapse_expand(item)
if current = selection.selected
if row_expanded?(current.path)
collapse_row(current.path)
else
expand_row(current.path, true)
end
else
toplevel.display_status("Append a node into the root first!")
end
end