ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mikep on August 31, 2021, 08:15:46 pm
-
thanks, that will work. I need to pass the hovertext to a function on right click of the cell. How can I get that from cell?
https://jsfiddle.net/t2zLx5nk/
contextMenu: {
on: true,
items: [{
name: 'send hovertext',
action: function test(){ varHover = "how to get the hovertext for this cell?"} }]
}
-
action: function test(evt, ui){
var val = ui.rowData["_" + ui.dataIndx];
if(val){
alert(val.split(",")[1]);
}
}
https://jsfiddle.net/svkctxhw/
-
Thank you. I need to change the value of a cell's hovertext on right click. Can you tweak the example below on the 'right click' method to change the cell's hover text, rather than calling 'alert()' ?
https://jsfiddle.net/svkctxhw/
-
It's more related to use of js array manipulation.
action: function test(evt, ui){
var val = ui.rowData["_" + ui.dataIndx];
if( val ){
var arr = val.split(",");
arr[1] = "new hovertext";
ui.rowData["_" + ui.dataIndx] = arr.join(",");
this.refreshCell(ui);
}
}
https://jsfiddle.net/4p6ta579/