Page 1 of 1
Hide Previous and Next buttons in Detail View
Posted: 2022-12-16 19:09
by rpierce
I would like to hide the "Previous" and "Next" buttons in Detail view for certain tables. Can I Do this in Hooks? If so, could one of you AppGIni geniuses help me do it?
Please and thank you!
Ray

- Capture.JPG (24.22 KiB) Viewed 3217 times
Re: Hide Previous and Next buttons in Detail View
Posted: 2022-12-16 19:31
by jsetzer
What about this one:
Code: Select all
// file: hooks/TABLENAME-dv.js
jQuery('#dv-navigation-buttons').hide();
You can also put that line in a more common place, for example within a
<script>
-tag in
hooks/header-extras.php
, if you want to get rid of them, generally, and perhaps check
AppGini.currentTableName()
before you decide to hide them or not.
Re: Hide Previous and Next buttons in Detail View
Posted: 2022-12-17 01:13
by rpierce
Thank you so much Jan!!
PS: I love your AppGini Helper JavaScript library. I am working to learn how to use it. I have made some DV modifications with multiple columns. It's great. Please keep up the good work!
Ray
Re: Hide Previous and Next buttons in Detail View
Posted: 2022-12-17 10:45
by jsetzer
Thanks, Ray, really appreciate your feedback!