Page 1 of 1

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

Posted: 2022-01-31 21:21
by jdaway
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:

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

Posted: 2022-01-31 22:17
by peebee
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.

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

Posted: 2022-02-06 11:39
by jdaway
Thank you @peebee.

Great thread to reference!