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

Add "role" attribute for MenuItem #2682

Merged
merged 4 commits into from Sep 2, 2015
Merged

Add "role" attribute for MenuItem #2682

merged 4 commits into from Sep 2, 2015

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Sep 2, 2015

The role attribute defines the action of the menu item, by using it users no longer need to manually write the behavior of standard menu items, and also fixed some menu items not working exactly the same with native ones (closes #2331).

Also specifying special menus doesn't require hard-coding menu's name any more (closes #2348).

Also document the behavior that current menu item and window are passed when calling the click function (closes #935).

zcbenz added a commit that referenced this pull request Sep 2, 2015
Add "role" attribute for MenuItem
@zcbenz zcbenz merged commit bfa33de into master Sep 2, 2015
@zcbenz zcbenz deleted the menu-item-role branch September 2, 2015 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant