cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Question: I would like to change the name of the subtotal titles.
Solution: You can use the following Javascript on the widget level.
var columns = ['0', '1']; //This is an array you can choose a specific column

widget.on('ready', function(w, args) {
for(var x = 0; x<columns.length; x++)
{
var tags = $('td.p-dim-member[fidx=' + columns[x] + ']', element);
for(var i=0; i<tags.length; i++) {
$('span', tags[i]).text($(tags[i]).text().substring(2)); //this line of code removes a character
}
}
});
widget.on('ready', function(w, args) {
for(var x = 0; x<columns.length; x++)
{
var tags = $('td.p-total-row-head[fidx=' + columns[x] + ']', element);
for(var i=0; i<tags.length; i++) {
$('span', tags[i]).text($(tags[i]).text().substring(2)); //this line of code removes a character
}
}
});
Version history
Last update:
‎03-02-2023 09:25 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: