diff --git a/assets/src/scripts/_datatable.js b/assets/src/scripts/_datatable.js index 481169d83..2b474ab50 100644 --- a/assets/src/scripts/_datatable.js +++ b/assets/src/scripts/_datatable.js @@ -75,7 +75,7 @@ const initCustomTable = async () => { const dataTable = new DataTable(tableEl, { paging: true, - perPage: 25, + perPage: tableEl.dataset.perpage ? tableEl.dataset.perpage : 25, searchable: true, sortable: true, tableRender: (_data, table) => { diff --git a/templates/_components/index.html b/templates/_components/index.html index 50c96c2fa..d03e6b859 100644 --- a/templates/_components/index.html +++ b/templates/_components/index.html @@ -691,7 +691,7 @@
button_text
: [string] - the text to display on the button to open the dialogbutton_variant
: [string] - the butten variant (default: primary)button_variant
: [string] - the button variant (default: primary)children
: [html] - display the children components. You could include one button with type="cancel"
, which will close the modal window.custom_button
: [string] - add a fragment for a custom button. This button should have the attribute data-modal=id`
in order to trigger opening the dialog modal.id
: [string] - HTML element ID for dialog elementchildren
: [html] - display the children componentsid
: [string] - add HTML ID to elementdata-perpage
: [number] - Number of items per page (default: 25)