How to hide the "Add New", "Print Preview", etc buttons on TV

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
jdaway
Posts: 2
Joined: 2022-01-30 22:02

How to hide the "Add New", "Print Preview", etc buttons on TV

Post by jdaway » 2022-01-31 21:21

I'm sure this is painfully simple but I'm embarrassingly lacking in knowledge and experience as I try to develop some simple apps.

I'm looking to hide the top buttons (div id="top_buttons") for two specific table views. I've been poking around in the tablename.php and tablename-tv.js files and just can't seem to wrap my head around where (or how) I would do this.

I am also running the bizzworxx AppGini Helper JavaScript Library.

Any assistance for a fledgling developer would be very much appreciated. Please keep the laughter to a minimum! :lol:

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 356
Joined: 2013-03-21 04:37

Re: How to hide the "Add New", "Print Preview", etc buttons on TV

Post by peebee » 2022-01-31 22:17

Try Jan's "Modification for Part 1" here: viewtopic.php?f=2&t=3661&p=13606&hilit= ... ons#p13606

Just remove the .table_view class from the <style> tag or your entire table will disappear.

$header = '<%%HEADER%%><style>#top_buttons { display: none; }</style>

Should do the job.

jdaway
Posts: 2
Joined: 2022-01-30 22:02

Re: How to hide the "Add New", "Print Preview", etc buttons on TV

Post by jdaway » 2022-02-06 11:39

Thank you @peebee.

Great thread to reference!

Post Reply