NCBI

Tree Viewer

1.13.0

Help

Introduction

This demo shows communication between Tree Viewer and grid with list of all nodes. When user selects nodes in grid, corresponding nodes (based on feature with name "target_acc") are selected in TV and zoom level changed (tviewer.selectNodesByFeature("target_acc",to_select,selCallback,true,true)), so all of then seen in a view port. Deselecting all nodes in grid will resulst in clearing selection in TV and bringing zoom level to 0 (clearSelection(0). When user changes selection in TV, correspoding changes propagated to grid. (TV event 'node_selection_changed'. In handler getSelectedNodesObjects(on_selected_nodes_handler) called.