Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a few new functions to my branch #114

Open
LennartHennigs opened this issue Jan 26, 2021 · 0 comments
Open

Added a few new functions to my branch #114

LennartHennigs opened this issue Jan 26, 2021 · 0 comments

Comments

@LennartHennigs
Copy link

LennartHennigs commented Jan 26, 2021

Hey,
I am currently using your library in a project of mine and really appreciate the huge amount of work and thought that went into it. So, first of all: thank you.

In my fork I added a few functions to the library:

bool ezMenu::updateItemName(int16_t index, String str)
void ezMenu::setSelected(int16_t index, bool refresh /* = false */) 
int16_t ezMenu::getSelected()
String ezMenu::getItemName(int16_t index)
bool ezMenu::updateItemState(int16_t index, String str)

...and I updated _runTextOnce(), it will now skip empty entries when navigating in a menu – the empty line allows me to separate a function from entries.

The use case for the functions is that I use submenus to select certain parameters (shown as states). These parameters are shown in the main menu. And the parameter show in the main menu should be selected in the sub menu

Maybe you'll it useful and consider merging it back.

Cheers
l.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant