cuba-platform / charts

Charts and Maps Addon
https://www.cuba-platform.com/
Apache License 2.0
5 stars 2 forks source link

PivotTable CellClickEvent should provide data items used in the clicked cell value generation #75

Closed pribavkindenis closed 5 years ago

pribavkindenis commented 5 years ago

Minimal reproducible example:

  1. Open Refapp.
  2. Inside com.haulmont.refapp.web.ui.pivot.PivotSampleScreen#initTipsPivotTable method add a CellClickEvent listener to tipsPivotTable:

    tipsPivotTable.addCellClickListener(event -> {
        // Your implementation here    
    });
  3. Start the application.
  4. Open Pivot Table screen.
  5. Open Tips tab.
  6. Click on the cell pointed by the green arrow.

    pivot_table

pribavkindenis commented 5 years ago

com.haulmont.charts.gui.components.pivot.PivotTable.CellClickEvent contains a new field usedDataItems which is a list of DataItem used in the clicked cell value generation.