Sidenav setting selected item

Forum to discuss the new web client version of Servoy.

Sidenav setting selected item

Postby dfernandez » Fri Nov 18, 2022 7:35 pm

Hi all!

When I select an item in a Sidenav, the selected option is not marked, so the user does not know what option it is running. How do you set the css to maintain visible the selected option in the SideNav?

Thanks
dfernandez
 
Posts: 87
Joined: Wed Feb 29, 2012 4:04 pm

Re: Sidenav setting selected item

Postby swingman » Thu Nov 24, 2022 7:24 pm

Hi, look it up on GitHub under the wiki tab

https://github.com/Servoy/servoy-extra- ... ng-sidenav

in this case

.svy-navitem-selected

Hope this helps,
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Sidenav setting selected item

Postby dfernandez » Thu Nov 24, 2022 9:24 pm

Hi Christian, thanks for your reply.

Yes, I use .svy-navitem-selected to change the color of the option when the users moves the mouse to select a navitem
.svy-navitem-selected {
color : #0a81f7;
}

But what I can not do is to leave the selected option marked. Once the user clicks, the control passes to the form in the right and the selected option is white again as the rest of the navitems. I would like it to be blue to indicate the option that was selected.
dfernandez
 
Posts: 87
Joined: Wed Feb 29, 2012 4:04 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 9 guests