Background Color of Selected Row on Subform

Background Color of Selected Row on Subform

Postby hanstel » Wed May 11, 2016 7:41 pm

How do you change the background color of selected subform row?
hanstel
 
Posts: 28
Joined: Sat Apr 30, 2016 10:21 am

Re: Background Color of Selected Row on Subform

Postby admin » Thu May 12, 2016 4:04 pm

hanstel,

The background color of a row only changes when the cursor hovers over it.

Steven
admin
Site Admin
 
Posts: 3406
Joined: Mon Jun 15, 2009 9:53 am
nuBuilder Version: 4.5

Re: Background Color of Selected Row on Subform

Postby hanstel » Thu May 12, 2016 5:22 pm

Ok got it, but how do you change the background hover color, currently its almost unnoticeable light gray color.
hanstel
 
Posts: 28
Joined: Sat Apr 30, 2016 10:21 am

Re: Background Color of Selected Row on Subform

Postby admin » Fri May 13, 2016 10:32 am

hanstel,

Its been hard coded, I felt any other color would get a bit ugly eg..

subform.png
subform.png (14.38 KiB) Viewed 6458 times


If you really want to you can change certain forms by putting this in the Form's Javascript..

Code: Select all


            $("[id$='_nuRow'").hover(
                function (){
                    $('#' + this.id).css('background-color', 'grey');
                },
                function (){
                    $('#' + this.id).css('background-color', '');
                }
            );




Steven
admin
Site Admin
 
Posts: 3406
Joined: Mon Jun 15, 2009 9:53 am
nuBuilder Version: 4.5

Re: Background Color of Selected Row on Subform

Postby hanstel » Fri May 13, 2016 3:33 pm

thanks a lot, consider this solved.
hanstel
 
Posts: 28
Joined: Sat Apr 30, 2016 10:21 am

Re: Background Color of Selected Row on Subform

Postby admin » Wed May 18, 2016 3:34 pm

.
admin
Site Admin
 
Posts: 3406
Joined: Mon Jun 15, 2009 9:53 am
nuBuilder Version: 4.5


Return to Custom Code