Methods
beginUpdate()
Postpones rendering that can negatively affect performance until the endUpdate() method is called.
dispose()
After calling this method, remove the DOM element associated with the UI component:
$("#myTreeMap").dxTreeMap("dispose"); $("#myTreeMap").remove();
Use this method only if the UI component was created with jQuery or pure JavaScript. In Angular, Vue, and React, use conditional rendering:
Angular
<dx-tree-map ... *ngIf="condition"> </dx-tree-map>
Vue
<template> <DxTreeMap ... v-if="condition"> </DxTreeMap> </template> <script> import DxTreeMap from 'devextreme-vue/tree-map'; export default { components: { DxTreeMap } } </script>
React
import React from 'react'; import TreeMap from 'devextreme-react/tree-map'; function DxTreeMap(props) { if (!props.shouldRender) { return null; } return ( <TreeMap ... > </TreeMap> ); } class App extends React.Component { render() { return ( <DxTreeMap shouldRender="condition" /> ); } } export default App;
See Also
drillUp()
To learn how to implement the drill down functionality, see the drillDown() method description.
getDataSource()
Gets the DataSource instance.
See Also
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout
- Data Layer - Overview
- Data Layer - DataSource Examples
getInstance(element)
getInstance is a static method that the UI component class supports. The following code demonstrates how to get the TreeMap instance found in an element with the myTreeMap
ID:
// Modular approach import TreeMap from "devextreme/viz/tree_map"; ... let element = document.getElementById("myTreeMap"); let instance = TreeMap.getInstance(element) as TreeMap; // Non-modular approach let element = document.getElementById("myTreeMap"); let instance = DevExpress.viz.dxTreeMap.getInstance(element);
See Also
render()
Normally, the UI component redraws itself automatically after the browser window is resized. But on rare occasions, you may need to request the redrawing, for example, after the UI component's container is resized. For this purpose, call the render() method.
See Also
If you have technical questions, please create a support ticket in the DevExpress Support Center.
We appreciate your feedback.