12-23-2022, 11:02 AM
(This post was last modified: 12-23-2022, 11:03 AM by harshabalan.)
Can we resize the datagrid alert icons ?
datagrid icon resizing can be acheived using the below script ; The scrpt has to be provide in dashboard script area
AlertColumn.prototype.getCustomAlert = function (showData, color, arrowPosition, customIcon) {
var text = '<div style=" display:inline-block;text-decoration:inherit;vertical-align:top;margin-top:2px;">' + showData + '</div>';
var alertImage = '<div style="width:0px; height:17px;margin-left:5px;margin-right:12px; display:inline-block;"><span class="'+customIcon+'" style="color:' + color + ';font-size:9px;"></span></div>';
if (this.m_alertposition == "left"){
return alertImage + text;
} else {
return text + alertImage;
}
};
(12-23-2022, 11:02 AM)harshabalan Wrote: Can we resize the datagrid alert icons ?
datagrid icon resizing can be acheived using the below script ; The scrpt has to be provide in dashboard script area
AlertColumn.prototype.getCustomAlert = function (showData, color, arrowPosition, customIcon) {
var text = '<div style=" display:inline-block;text-decoration:inherit;vertical-align:top;margin-top:2px;">' + showData + '</div>';
var alertImage = '<div style="width:0px; height:17px;margin-left:5px;margin-right:12px; display:inline-block;"><span class="'+customIcon+'" style="color:' + color + ';font-size:9px;"></span></div>';
if (this.m_alertposition == "left"){
return alertImage + text;
} else {
return text + alertImage;
}
};