Search
320 results 221-230
Reference
button.searchPanes› Enable SearchPanes through a buttonoption of the DataTables language object, or using thesearchPanes.i18n› Container for options for languageto the pane specific language options if searchPanes.i18n issearchPanes.i18n.title› Add internationalisation to the title showing how many panes are selectedthis option as the language strings can be loadedsearchPanes.i18n.showMessage› Set the message to be displayed in the Show buttonthis option as the language strings can be loadedsearchPanes.i18n.loadMessage› Add internationalisation to the message shown when the panes are loadingthis option as the language strings can be loadedsearchPanes.i18n.emptyPanes› Add internationalisation to the message shown when no panes are displayedthis option as the language strings can be loadedsearchPanes.i18n.emptyMessage› Add internationalisation to the empty message displayed as a pane optionthis option as the language strings can be loaded
Examples
- DataTables › Language - Comma decimal placeA dot (
.) is used to mark the decimal place in JavaScript, however, many parts of the world use a comma (,) and other characters such as the Unicode decimal separator (⎖) or a dash (-) are often used to show the decimal place in a displayed number. When reading such numbers, JavaScript won't automatically recognise them as numbers, however, DataTables' type detection and sorting methods can be instructed through thelanguage.decimaloption which character is used as the decimal place in your numbers. This will be used to correctly adjust DataTables' type detection and sorting algorithms to sort numbers in your table. Any character can be passed in using thelanguage.decimaloption, although the decimal place character used in a single table must be consistent (i.e. numbers with a dot decimal place and comma decimal place cannot both appear in the same table). Different tables on the same page can use different decimal characters if required. The example below shows a comma being used as the decimal place in the currency numbers shown in the final column. - DataTables › Language - auto renderWhen displaying data you don't always want to display the raw data to the end user - for example ISO8601 date format makes it easy for a computer to parse a date, but humans don't use it on a day-to-day basis. Instead, we use lots of different formats. You can use
columns.renderto have DataTables render the data in a suitable format, but that requires knowing the data in each column in advance. It is also possible to assign a renderer by data type usingDataTable.type(). This example demonstrates the use of this method to apply formatting to date and number data types. They will automatically apply formatting suitable for the user's locale, based on their browser's preferences. In the table below, the Age and Start date columns are affected by the auto renderers (although the Age column doesn't go above 1000, so the thousands separator isn't required).