When the DataTable and the screen size is reduced the sorting options go to a combo box with "column name ascending" and "column name descending".
How do I change the word Ascending and Descending in this combo box? I want to translate it.
Change the word Ascending and Descending in DataTable Sort
-
- Posts: 4637
- Joined: 29 Jun 2013, 12:38
You can change value of the following properties in your messages.properties file;
primefaces.datatable.SORT_ASC = Ascending
primefaces.datatable.SORT_DESC = Descending
primefaces.datatable.SORT_ASC = Ascending
primefaces.datatable.SORT_DESC = Descending
Github Profile: https://github.com/mertsincan
You can do it while initializing:
jQuery(function ($) {
$(".datatable").dataTable({
"paging": false,
"searching": false,
"info": false,
"orderCellsTop": true,
aoColumnDefs: [
{
orderSequence: ["desc", "asc"],
aTargets: ['_all']
}
]
});
});
jQuery(function ($) {
$(".datatable").dataTable({
"paging": false,
"searching": false,
"info": false,
"orderCellsTop": true,
aoColumnDefs: [
{
orderSequence: ["desc", "asc"],
aTargets: ['_all']
}
]
});
});
-
- Posts: 4637
- Joined: 29 Jun 2013, 12:38
Hi @trumpP, This forum is for Apollo-PrimeFaces. Maybe, you can use PrimeUI or Jquery DataTable.
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest