Euro symbol on the right

Euro symbol on the right

bucanerobucanero Posts: 15Questions: 2Answers: 0
edited May 2016 in Free community support

Hi, I have a table with a column that has to show amounts in euros.

With this configuration, it works ok:
   { render: $.fn.dataTable.render.number( '.', ',', 2, '€' ), aTargets:8 }

But euro symbol is on the left. Is it possible to put it on the right?

Thanks

Replies

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    The forth parameter in the number renderer is a prefix. Use the optional fifth parameter to postfix - see the documentation.

    Allan

  • bucanerobucanero Posts: 15Questions: 2Answers: 0
    edited May 2016

    Thanks Alllan, but this: $.fn.dataTable.render.number( '.', ',', 2, '', '€') No works.

    Nothing of what I put in the fifth parameter is displayed, even if I use the fourth parameter.

    If I want to use only the fifth parameter, what I have to put in the forth?

    Thanks

  • bucanerobucanero Posts: 15Questions: 2Answers: 0
    edited May 2016

    I've got v1.10.3 and I've seen, in v.1.10.11, there are all right (with prefix and postfix)

    Thanks.

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    That is correct - the optional fifth parameter was added in newer versions of DataTables.

    Allan

This discussion has been closed.