[starting from version: 2.8]
It is triggered when the drill-through view is opened. To know when the drill-through view is closed, use the drillthroughclose
event.
Parameter/Type | Description |
---|---|
data CellDataObject | ChartDataObject | Information about the object opened in the drill-through view. If the drill-through view is opened on the grid, this is a CellDataObject containing information about the cell. If the drill-through view is opened on charts, this is a ChartDataObject containing information about the chart segment. |
pivot.on('drillthroughopen', function (cell) {
alert("The drill-through view is opened for the cell - row: "
+ cell.rowIndex + ", column: "
+ cell.columnIndex
+ ", label: "
+ cell.label);
});
pivot.on('drillthroughopen', function(chart) {
alert("The drill-through view is opened for the chart segment with label: "
+ chart.label + ", measure: "
+ chart.measure.uniqueName
+ ", value: "
+ chart.value);
});
pivot.on('drillthroughopen', function(data) {
if (pivot.getOptions().viewType == "grid"){
alert("The drill-through view is opened for the cell - row: "
+ data.rowIndex + ", column: "
+ data.columnIndex
+ ", label: "
+ data.label);
}
else if (pivot.getOptions().viewType == "charts") {
alert("The drill-through view is opened for the chart segment with label: "
+ data.label + ", measure: "
+ data.measure.uniqueName
+ ", value: "
+ data.value);
}
});