Records Per Page Dropdown
Records Per Page Dropdown
Is there a way to hide/remove the "Records Per Page" dropdown menu in AppGini? I want to show more than 200 records per page. The issue is that if a user clicks on that dropdown then the Records Per Page setting in AppGini is overridden and you are limited to a max of 200 records per page. I'm using version 24.17 at the moment because newer versions have issues that I am unable to resolve.
Re: Records Per Page Dropdown
How to change the records-per-page dropdown entriesI want to show more than 200 records per page
Code: Select all
<script>
// file: hooks/header-extras.php
AppGini.config.recordsPerPageOptions = [10, 25, 50, 100, 250, 1000];
</script>
---
(1) How to visually hide records-per-page selectorIs there a way to hide/remove the "Records Per Page" dropdown menu in AppGini
Code: Select all
<script>
// file: hooks/header-extras.php
jQuery(() => { jQuery('#records-per-page-selector').closest(".form-inline").hide(); });
</script>
---
(2) How to overwrite the method which renders the records-per-page selector
Code: Select all
<script>
// file: hooks/header-extras.php
let blacklist = ['TABLENAME', 'TABLENAME2', '...']; // tablenames as array
if (blacklist.include(AppGini.currentTableName()))
AppGini.renderTVRecordsPerPageSelector = () => { };
</script>
$options
, $_SESSION
-variables, $_POST
-arguments etc.. So, I'm not sure if this will work in your scenario.Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 25.10 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 25.10 + all AppGini Helper tools