Format a bootstrap table with dollar sign and thousand separator

Viewed 7880

I am trying to format my bootstrap table, so that I can read $12,000,000 instead of 12000000 + its footer (suming up columns) I understand this can be donne inserting a javascript function +CSS. Thanks for your help.

Here is the code of my table.

<table id="exampleTableFromData" data-sort-order="desc" data-mobile-responsive="true" data-search="true" data-show-footer="true" data-footer-style="footerStyle">
    <thead>
        <tr>
            <th data-field="Customers" data-sortable="true" data-align="left">Customer</th>

            <th data-field="RM" data-sortable="true" data-align="right" data-footer-formatter="totalFormatter">Sales</th>

            <th data-field="BO" data-sortable="true" data-align="right" data-footer-formatter="totalFormatter">Discount</th>

            <th data-field="GGR" data-sortable="true" data-align="right" data-footer-formatter="totalFormatter">Net</th>
        </tr>
    </thead>
</table>
2 Answers
Related