Search
282 results 191-200
Reference
language.aria.orderable
› Language string used for WAI-ARIA column orderable labelARIA label that is added to the table headers when the column may be sorted by activating the column (click or return when focused). The string given here is prefixed with the column name when DataTables constructs the aria-label attribute.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 loaded
Examples
- SearchPanes › Internationalisation Language OptionsThis example shows how the internationalisation functionality built into dataTables can be used to show how many filters have been applied in the title section. Values can be defined for individual values like '0' with '_' being for the rest.
- DataTables › Right-to-left language supportDataTables supports RTL languages out of the box for layout, as shown in the example below. Our default CSS requires the use of the
dir
attribute on the document root or any parent element of the DataTable container. Please note that this example uses Javascript to add thedir="rtl"
attribute to the table container, as the rest of our site and examples pages are not setup for right-to-left layout. If your page already has this attribute set, that extra Javascript is not required. - 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.decimal
option 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.decimal
option, 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.render
to 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).