jQuery UI Widgets Forums Getting Started Change label of aggregates

This topic contains 2 replies, has 2 voices, and was last updated by  Gopre400 10 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Change label of aggregates #31658

    Gopre400
    Participant

    Hi, I would like to change the label of the sum aggregate from “Sum” to something else Like “Total” or “Total Length”, is this possible?

    Change label of aggregates #31674

    Dimitar
    Participant

    Hello Gopre400,

    Yes, it is possible by using aggregatesrenderer. Please check out the demo Aggregates Renderer and note the name variable in the callback function.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Change label of aggregates #31705

    Gopre400
    Participant

    Thanks Dimitar!

    Here is what I did (it may not be the best way)…

    aggregatesrenderer: function (aggregates, column, element) {
    var totallength = 0
    $.each(aggregates, function (key, value) {
    totallength = value;
    });
    var renderstring = “

    Total: ” + totallength + “

    “;
    return renderstring;

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.