1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="i18n">
<name>language.thousands</name>
<summary>Thousands separator</summary>
<since>1.10</since>
<type type="string" />
<default value="," />
<description>
DataTables' built in number formatter (`dt-init formatNumber`) is used to format large numbers that are used in the table information. By default a comma is used, but this can be trivially changed to any other character you wish with this parameter, suitable for any locality, or set to an empty string if you do not which to have a thousands separator character.
Please note that unlike the `dt-init language.decimal` option, the thousands separator option is used for output of information only (specifically the `dt-init info` option). Changing it does not effect how DataTables reads numeric data.
</description>
<example title="Set thousands separator to be a quote mark"><![CDATA[
$('#example').dataTable( {
"language": {
"thousands": "'"
}
} );
]]></example>
<related type="option">language</related>
<related type="option">language.decimal</related>
<related type="option">language.info</related>
<related type="option">language.infoEmpty</related>
<related type="option">language.infoFiltered</related>
<related type="option">language.infoPostFix</related>
<related type="option">formatNumber</related>
</dt-option>
|