!!!###!!!title=operate scenegraph——VisActor/VTable tutorial documents!!!###!!!!!!###!!!description=In some scenarios, it is necessary to operate on the scenegraph, such as updating a single node (cell) or obtaining information about a node.The following mainly introduces the currently stable interfaces. Since the implementation of the scenegraph is still being iterated, it is not guaranteed that the following interfaces will not change.!!!###!!!

Operate Scenegraph (Advanced)

In some scenarios, it is necessary to operate on the scenegraph, such as updating a single node (cell) or obtaining information about a node.

The following mainly introduces the currently stable interfaces. Since the implementation of the scenegraph is still being iterated, it is not guaranteed that the following interfaces will not change.

Get Scenegraph

tableInstance.scenegraph;

Get the node of the corresponding cell in the scenegraph

tableInstance.scenegraph.getCell(colIndex, rowIndex);

Update the content of the corresponding cell in the scenegraph

By this interface, the cell node will be refreshed and repainted. It is applicable to the scenario where the customLayout needs to be executed to recalculate the cell content.

tableInstance.scenegraph.updateCellContent(colIndex, rowIndex);

Get the cell node of the corresponding node

VTable.getTargetCell(e.target);