Hide Previous and Next buttons in Detail View

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Hide Previous and Next buttons in Detail View

Post by rpierce » 2022-12-16 19:09

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
Capture.JPG (24.22 KiB) Viewed 943 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Hide Previous and Next buttons in Detail View

Post by jsetzer » 2022-12-16 19:31

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.
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Hide Previous and Next buttons in Detail View

Post by rpierce » 2022-12-17 01:13

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

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Hide Previous and Next buttons in Detail View

Post by jsetzer » 2022-12-17 10:45

Thanks, Ray, really appreciate your feedback!
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply