Spirik / GEM

Good Enough Menu for Arduino
GNU Lesser General Public License v3.0
245 stars 36 forks source link

Setting conditional pages #62

Closed HajmamadAgha closed 1 year ago

HajmamadAgha commented 2 years ago

I'm going to put some variables on the same pages and I want them to be limited, e.g. when setting variable X and pushing the next button it shouldn't be able to get lower than 2 and if so I want to show an error and go back to the page.

Spirik commented 2 years ago

Sorry, not quite sure that I understand correctly, but it seems to me that what you want is to implement some sort of validation callback. It is possible, please see my reply to your other posted issue. If this is not the case, please clarify what are you trying to achieve.