| TreeView | R Documentation |
Shows a tree of tree_node()s. See tree_view().
Widget -> TreeView
paint_statesCursor and scroll changes only repaint.
focusableTrees can be focused.
show_rootShow the root node?
guidesDraw guide lines?
rootThe root node.
cursor_nodeThe node under the cursor, or NULL.
visible_countNumber of visible (expanded) lines.
offsetFirst visible line minus one.
Widget$add_class()Widget$ancestors()Widget$animate()Widget$arrange_children()Widget$bind()Widget$bind_reactive()Widget$bindings()Widget$blur()Widget$capture_mouse()Widget$child_clip()Widget$clear()Widget$computed_style()Widget$focus()Widget$format()Widget$get_state()Widget$has_class()Widget$invalidate()Widget$invalidate_paint()Widget$is_displayed()Widget$is_enabled()Widget$layout_descend()Widget$layout_differs()Widget$matches()Widget$mount()Widget$on()Widget$post_message()Widget$print()Widget$pseudo_states()Widget$query()Widget$query_one()Widget$refresh()Widget$release_mouse()Widget$remove()Widget$remove_children()Widget$remove_class()Widget$render()Widget$render_lines()Widget$replace()Widget$run_action()Widget$run_process()Widget$run_worker()Widget$set()Widget$set_interval()Widget$set_state()Widget$set_timeout()Widget$toggle_class()Widget$walk()TreeView$new()Create a tree view. See tree_view().
TreeView$new( root, show_root = TRUE, guides = TRUE, id = NULL, classes = NULL, style = NULL, disabled = FALSE )
rootThe root TreeNode.
show_root, guidesSee fields.
id, classes, style, disabledSee Widget.
TreeView$default_style()The built-in style.
TreeView$default_style()
TreeView$default_bindings()Navigation keys.
TreeView$default_bindings()
TreeView$tree_changed()Called by nodes when the tree changes.
TreeView$tree_changed()
TreeView$select()Move the cursor to a node (expanding its ancestors).
TreeView$select(node)
nodeA node of this tree.
TreeView$action_cursor_up()Move up.
TreeView$action_cursor_up()
TreeView$action_cursor_down()Move down.
TreeView$action_cursor_down()
TreeView$action_page_up()Move a page up.
TreeView$action_page_up()
TreeView$action_page_down()Move a page down.
TreeView$action_page_down()
TreeView$action_first()Go to the first node.
TreeView$action_first()
TreeView$action_last()Go to the last visible node.
TreeView$action_last()
TreeView$action_expand_or_child()Expand, or go to the first child.
TreeView$action_expand_or_child()
TreeView$action_collapse_or_parent()Collapse, or go to the parent.
TreeView$action_collapse_or_parent()
TreeView$action_toggle()Toggle the cursor node.
TreeView$action_toggle()
TreeView$action_activate()Toggle and send "tree.node_activated".
TreeView$action_activate()
TreeView$on_mouse_down()Clicking selects; clicking the arrow toggles.
TreeView$on_mouse_down(event)
eventA MouseEvent.
TreeView$on_mouse_scroll()The wheel scrolls three lines.
TreeView$on_mouse_scroll(event)
eventA MouseEvent.
TreeView$content_width()Natural width: the widest visible line.
TreeView$content_width()
TreeView$content_height()Natural height: visible lines (at most 1000).
TreeView$content_height(width)
widthContent width.
TreeView$paint()Draw the visible lines.
TreeView$paint(buffer, area, st)
bufferA ScreenBuffer.
areaVisible part of the region.
stComputed style.
TreeView$clone()The objects of this class are cloneable with this method.
TreeView$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.