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

Feature Request - menu item accepts output of function #62

Open
markfaine opened this issue Aug 16, 2022 · 1 comment
Open

Feature Request - menu item accepts output of function #62

markfaine opened this issue Aug 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@markfaine
Copy link

Something like the FunctionItem class in https://github.com/aegirhall/console-menu

I prefer simple-term-menu but I find this a hole in the functionality. I need this feature to make a complete menu. Otherwise I have to supplement the menu with non-menu screens that accept input.

@IngoMeyer441 IngoMeyer441 added the enhancement New feature or request label Jan 4, 2023
@IngoMeyer441
Copy link
Owner

Could you please give a small code example how this feature is intended to be used? If I understand the documentation of console-menu correctly, the function is executed after the item is selected. Couldn't you use a dictionary which assigns a bound function to menu indices?

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

No branches or pull requests

2 participants