1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00
DataTables/examples
Allan Jardine afdf67075d New: language.decimal option. This option can be used to tell
DataTables which character is used as a decimal place in the table's
data, so that number which are formatted using characters other than a
dot as the decimal place can be correctly detected and sorted.

- A large part of the world uses the comma as a decimal place, so it
  makes sense to have this option built-in directly to DataTables,
  rather than needing to use plu-in sorting types as before:
  http://en.wikipedia.org/wiki/Decimal_mark

- However, the decimal place character cannot be detected automatically
  since there are far to many ambiguities. As such, a new
  `language.decimal` option is defined which is passed through to the
  type detection functions. The type detection functions can then use
  that character to alter their detection functions to transform numbers
  into the dot formatted equivilent for parsing in Javascript.

- The numeric sorting methods have been bundled together in the function
  `_addNumericSort` which is called when a character is given for the
  decimal mark, adding the sorting functions required specifically for
  that mark. This means that any character at all can be added, while
  keeping the table's sort performance as it was.

- Code size in increased a little for this new feature, but a lot of
  work has been done to keep it to a minimum (while still optimising for
  the most common use case of a dot decimal place), and this is a good
  feature to have in DataTables' core code.

- All required documentation added and updated.

- Special thanks to Tobias Bäthge for suggesting and sponsoring this
  feature.
2014-02-10 17:07:22 +00:00
..
advanced_init New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
ajax New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
api New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
basic_init New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
data_sources New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
plug-ins New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
resources Examples: Add latest example files from the src repo 2014-02-04 10:54:36 +00:00
server_side New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
styling New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00
index.html New: language.decimal option. This option can be used to tell 2014-02-10 17:07:22 +00:00