Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Background Color of Selected Row on Subform

Locked
hanstel
Posts: 28
Joined: Sat Apr 30, 2016 2:51 am

Background Color of Selected Row on Subform

Unread post by hanstel »

How do you change the background color of selected subform row?
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Background Color of Selected Row on Subform

Unread post by admin »

hanstel,

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

Steven
hanstel
Posts: 28
Joined: Sat Apr 30, 2016 2:51 am

Re: Background Color of Selected Row on Subform

Unread post by hanstel »

Ok got it, but how do you change the background hover color, currently its almost unnoticeable light gray color.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Background Color of Selected Row on Subform

Unread post by admin »

hanstel,

Its been hard coded, I felt any other color would get a bit ugly eg..
subform.png
subform.png (14.38 KiB) Viewed 7266 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
hanstel
Posts: 28
Joined: Sat Apr 30, 2016 2:51 am

Re: Background Color of Selected Row on Subform

Unread post by hanstel »

thanks a lot, consider this solved.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Background Color of Selected Row on Subform

Unread post by admin »

.
Locked