If you're using a paper-menu (or a paper-listbox) inside a
paper-dropdown-menu as shown in the example on the paper-dropdown-menu
docs, then the paper-menu fires an iron-select event when the selected item
changes (
https://elements.polymer-project.org/elements/paper-menu#event-iron-select).
The paper-dropdown-menu fires events when it's opened or closed.

Here's a bin showing listening to the iron-select event:

http://jsbin.com/juvojec/edit?html,console,output

So we're clear, there's no list of on- event attributes. Polymer supports
this as a general pattern. on-<event-name> adds an event listener for
<event-name>. That event name can be a standard DOM event like click
<https://developer.mozilla.org/en/docs/Web/Events/click>, a Polymer gesture
event like tap
<https://www.polymer-project.org/1.0/docs/devguide/events.html#gestures>,
or an element-specific event like iron-select.

As Karl said, any property with notify: true also generates an event. You
could also listen for _those_ with on-<property-name-changed>, like,
on-value-changed, on-selected-item-label-changed, and so on.

The paper-dropdown-menu doc is a little unclear, but the meaning of the 2nd
paragraph is that you can specify any menu element you like (paper-menu,
paper-listbox, or an element of your own). If you create a new element
here, it needs to fire an iron-select event when a new item is selected,
and the event's detail.item should be the selected item.

https://elements.polymer-project.org/elements/paper-dropdown-menu

I'll submit a PR to try and make this part of the API doc a little clearer.

Hope that helps.

On Mon, Feb 8, 2016 at 8:13 PM, Colin Cannon <[email protected]> wrote:

> I am using a paper-dropdown-menu.  I want to fire a custom event when the
> drop down is changed (maybe on-change?). I couldn't find instructions in
> the docs on how to do this.  Anybody know a list of on-events that I can
> use with polymer elements?  I am sure it is in the docs somewhere, but I am
> having no luck finding it.
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/0fc3e249-6d68-4802-9a55-9ef28110dfe0%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/0fc3e249-6d68-4802-9a55-9ef28110dfe0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CADSbU_zrW_PYVwnCp9V61fHHQCskJdZwvdsN5Z7EHzw0nQcJUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to