Child Rows render as Currency

Child Rows render as Currency

johnsonjjohnsonj Posts: 14Questions: 3Answers: 0

How do you make sure child rows added via custom html have the same format as the parent row? I have a Dollar Amount column that I show using render: $.fn.dataTable.render.number(',', '.', 0, '$') . How do I make sure the child row also renders the dollar amount the same way? I want to make sure DataTables doesn't already have some option to do it before I build it myself.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    Hi @johnsonj ,

    Child rows can be anything, so it's really up to your code how they're formatted, so you'll need to build it yourself, I'm afraid.

    Cheers,

    Colin

This discussion has been closed.