Highchart 仪表板 DataGridClickCallbackFunction(this, event)

问题描述 投票:0回答:1

我需要一个使用 Highchart Dashboards for DataGridClickCallbackFunction(this, event) 的示例..谢谢

需要一个在 javascript 中使用此函数的示例来获取单击的行/列的列的值

highcharts
1个回答
0
投票

您应该参考dataGridOptions.events.row.click函数。

API参考: https://api.highcharts.com/dashboards/#interfaces/DataGrid_DataGridOptions.DataGridRowEvents

演示: https://jsfiddle.net/BlackLabel/rq8kwmnL/

dataGridOptions:{
    events: {
        row: {
            click: function(){
                console.log(this)
            }
        }
    }
}
© www.soinside.com 2019 - 2024. All rights reserved.