2019-03-05 23:52:45 +01:00
|
|
|
# Latest documentation available at https://omines.github.io/datatables-bundle/#configuration
|
|
|
|
datatables:
|
2019-03-06 00:02:33 +01:00
|
|
|
|
|
|
|
language_from_cdn: false
|
|
|
|
|
2022-09-09 00:41:35 +02:00
|
|
|
# Set to none, as we override the bundle mechanism with our own custom one
|
|
|
|
persist_state: none
|
|
|
|
|
2019-03-05 23:52:45 +01:00
|
|
|
# Set options, as documented at https://datatables.net/reference/option/
|
|
|
|
options:
|
2020-01-04 22:09:37 +01:00
|
|
|
lengthMenu : [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]]
|
2023-07-08 19:32:50 +02:00
|
|
|
pageLength: '%partdb.table.default_page_size%' # Set to -1 to disable pagination (i.e. show all rows) by default
|
2019-03-12 19:09:22 +01:00
|
|
|
#dom: "<'row' <'col-sm-12' tr>><'row' <'col-sm-6'l><'col-sm-6 text-right'pif>>"
|
2022-12-11 23:05:22 +01:00
|
|
|
dom: " <'row'<'col mb-2 input-group' B l> <'col mb-2' <'pull-end' p>>>
|
2019-09-06 18:25:24 +02:00
|
|
|
<'card'
|
2019-03-27 19:03:02 +01:00
|
|
|
rt
|
|
|
|
<'card-footer card-footer-table text-muted' i >
|
|
|
|
>
|
2019-09-08 18:34:06 +02:00
|
|
|
<'row'<'col mt-2 input-group' B l> <'col mt-2' <'pull-right' p>>>"
|
2019-03-12 19:09:22 +01:00
|
|
|
pagingType: 'simple_numbers'
|
|
|
|
searching: true
|
2019-09-06 18:25:24 +02:00
|
|
|
stateSave: true
|
|
|
|
|
2019-03-05 23:52:45 +01:00
|
|
|
|
|
|
|
template_parameters:
|
|
|
|
# Example classes to integrate nicely with Bootstrap 3.x
|
|
|
|
className: 'table table-striped table-hover table-sm data-table'
|
|
|
|
|
|
|
|
# You can for example override this to "tables" to keep the translation domains separated nicely
|
|
|
|
translation_domain: 'messages'
|