neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
948 stars 191 forks source link

How do I make a menu item unavailable? #351

Closed Astar75 closed 3 years ago

Astar75 commented 3 years ago

Hello. How can you make a menu item unavailable for clicking under certain conditions. For example, if I have bluetooth mode, then all the menu items are available, but if I switch to wi-fi mode, then either hide the desired menu item or make it unavailable so that it would not be possible to enter there.

Astar75 commented 3 years ago

I found. You can call the enable () and disable () methods. Sorry for the inattention.