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

feat(context): Added onMenu field option #657

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AstroNext
Copy link

call onMenu function if available when menu id set to context menu option.

Copy link
Member

@LukeWasTakenn LukeWasTakenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is the use case for something like this? To call a function when the menu is opened?

@AstroNext
Copy link
Author

When navigating from one menu to another, it's sometimes necessary to retain the arguments from the previous menu. For example, to edit the name or other details of a job rank, we first select the rank (assuming the menus are pre-defined and the transition occurs through the menu system not onSelect or event). At this point, it's essential to store this rank so that we can edit it.

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

Successfully merging this pull request may close these issues.

2 participants