Button Styles

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
TheNoLifer
Veteran Member
Posts: 67
Joined: 2015-06-06 12:10

Button Styles

Post by TheNoLifer » 2015-06-23 03:42

Hi all,

Can anyone tell me where on earth I can re-style the control buttons?;
buttons.PNG
buttons.PNG (13.24 KiB) Viewed 4911 times
Chrome's inspect-element shows me the classes and whatnot, but I cannot find where they're called from.

Cheers!

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Button Styles

Post by patsd102 » 2015-06-23 19:15

You can change in the template/YOURFIELD_templateDV.html
23.17

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

Re: Button Styles

Post by peebee » 2015-06-24 04:58

You'll find those buttons are generated in datalist.php

Just look for this line: // quick search and TV action buttons somewhere around line 700. You'll find all those buttons in there.

This for example, is the code to generate the Print Preview button

Code: Select all

// display Print icon
				if($this->AllowPrinting){
					$buttons_all .= '<button onClick="document.myform.NoDV.value=1; ' . $resetSelection . ' return true;" type="submit" name="Print_x" id="Print" value="1" class="btn btn-default"><i class="glyphicon glyphicon-print"></i> ' . $Translation['Print Preview'] . '</button>';
					$buttonsCount++;
				}
You can change the button class (class="btn btn-default") in there. Hope that is what you were after.

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Button Styles

Post by patsd102 » 2015-06-24 20:04

Hi Peebee
Thanks for correcting this post.

Have a nice day

Pat
23.17

TheNoLifer
Veteran Member
Posts: 67
Joined: 2015-06-06 12:10

Re: Button Styles

Post by TheNoLifer » 2015-06-25 02:58

Thank you both for your replies!

The datalist.php is what I was looking for!

Post Reply