Reg core-dropdown-menu

68 views
Skip to first unread message

dines...@gmail.com

unread,
Oct 30, 2014, 4:04:05 AM10/30/14
to polym...@googlegroups.com
Hi,

I am new to polymer and have a small query about core-drop-down menu . PFB the code that i am using it for my testing.
In the below snippet the core-select-method is not getting called at all. Am i missing something.
Kindly excuse if it is silly.

I have included the platform js and core-drop-menu.html.

Polymer('dropdown-demo', 
  {
   created: function() {
               console.log("create");
              }, 
   itemSelected: function(event, detail, sender) {
              console.log("selected");
              }
 
  });

<polymer-element name="dropdown-demo">
   <section>
        drop-up:
        <core-dropdown-menu valign="bottom" valueattr="label" selected="Donut" on-core-select="{{ itemSelected }}">
          <core-item label="Croissant"></core-item>
          <core-item label="Donut"></core-item>
          <core-item label="Financier"></core-item>
          <core-item label="Madeleine"></core-item>
        </core-dropdown-menu>
      </section>
</polymer-element>

Rob Dodson

unread,
Oct 30, 2014, 3:52:20 PM10/30/14
to dines...@gmail.com, polymer-dev
Your dropdown-demo element is missing its template tag. Here's a working example: http://jsbin.com/qojiq/4/edit?html,output

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 polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/37f8a3cc-19ca-4f5d-860a-c7a2534d40bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages