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

[0.14 sdk]menu does not work #4727

Closed
lin-chao opened this issue Apr 15, 2016 · 3 comments
Closed

[0.14 sdk]menu does not work #4727

lin-chao opened this issue Apr 15, 2016 · 3 comments
Assignees
Milestone

Comments

@lin-chao
Copy link

lin-chao commented Apr 15, 2016

version: 0.14.0
os: Windows

test code:

{
  "main": "index.html",
  "name": "menu demo",
  "window": {
    "icon": "icon.png",
    "width": 799,
    "height": 799
  }
}
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>menu demo</title>
  <script>
  var menu = new nw.Menu({
    type: 'menubar'
  })

  var subMenu = new nw.Menu()
  subMenu.append(new nw.MenuItem({
    "label": 'item1',
    "click": () => {
      console.log('click')
    }
  }))

  menu.append(new nw.MenuItem({
    "label": 'menu',
    "submenu": subMenu
  }))


  nw.Window.get().menu = menu
  </script>
</head>

<body></body>

</html>

0.14.0 click menu has no response which work good with 0.13.*

image

@rogerwang rogerwang self-assigned this Apr 15, 2016
@rogerwang rogerwang added this to the 0.14.x milestone Apr 15, 2016
@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

@rogerwang
Copy link
Member

@lin-chao
Copy link
Author

it's ok now

thanks for lots of work

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

2 participants