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

Events for paper-menu or paper-item #13

Closed
tjsavage opened this issue Jun 2, 2015 · 4 comments
Closed

Events for paper-menu or paper-item #13

tjsavage opened this issue Jun 2, 2015 · 4 comments

Comments

@tjsavage
Copy link
Contributor

tjsavage commented Jun 2, 2015

How do I listen/capture to change in "focusedItem" of iron-menu-behaviour? I cannot see any event or property change listener for an item change i.e. change in paper-item selection within a paper-menu.

@ericguzman
Copy link

I'm having trouble with this, as well. Not sure if one-way, upward binding to "focusedItem" is supposed to work here, but I haven't had any success.

As an aside, the documentation (here: https://www.polymer-project.org/1.0/docs/devguide/data-binding.html#property-notification) implies that "notify: true" should be set for upward binding. A closed issue stated that this isn't true -- perhaps the docs can updated to prevent confusion.

@morethanreal
Copy link

notify:true is required for binding a property value upwards, but currently that is not supported for focusedItem. Note that selection state and focus state is not equivalent.

@Trakkasure
Copy link

If you notice, paper-menu implements this behavior, which also implements the Polymer.IronMultiSelectableBehavior. I am unsure why multi-select for menus. Use you can watch selectedValues if multi is enabled or selectedValue, or listen to the iron-select event. There is a patch for multi-select behavior. I suggest using the patch if you are using multi-select.

@cdata
Copy link
Contributor

cdata commented Oct 27, 2015

Hi, is there a bug report or feature request here? If so, please re-open with a more specific request. Thanks!

@cdata cdata closed this as completed Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants