Methods

refresh()

Method to reload treemap with updated values.

  • ts
  • refresh(){
         
         //Do something
         this.treemap.widget.refresh();
    
    }

    Events

    treeMapItemSelected

    Triggers on treemap item selected.

  • js
  • <ej-treemap id="treemap" (treeMapItemSelected)="treeMapitemselected($event)">
     </ej-treemap>
  • ts
  • treeMapItemSelected(sender) {
    
      // do something 
    
      }

    drillStarted

    Triggers when drilldown is started

  • js
  • <ej-treemap id="treemap" (drillStarted)="drillStarted($event)">
     </ej-treemap>
  • ts
  • drillStarted(sender) {
    
      // do something 
    
      }

    drillDownItemSelected

    Triggers on treemap drilldown item selected.

  • js
  • <ej-treemap id="treemap" (drillDownItemSelected)="drilldownitemselected($event)">
     </ej-treemap>
  • ts
  • drillDownItemSelected(sender) {
    
      // do something 
    
      }

    headerTemplateRendering

    Triggers before rendering the treemap drilldown header template

  • js
  • <ej-treemap id="treemap" (headerTemplateRendering)="headerTemplateRenderer($event)">
     </ej-treemap>
  • ts
  • headerTemplateRenderer(sender) {
    
      // do something 
    
      }

    refreshed

    Triggers after refreshing the treemap items.

  • js
  • <ej-treemap id="treemap" (refreshed)="refreshed($event)">
     </ej-treemap>
  • ts
  • refreshed(sender) {
    
      // do something 
    
      }

    treeMapGroupSelected

    Triggers when the group selection is performed on treemap items.

  • js
  • <ej-treemap id="treemap" (treeMapGroupSelected)="treeMapGroupSelected($event)">
     </ej-treemap>
  • ts
  • treeMapGroupSelected(sender) {
    
      // do something 
    
      }