You need to declare attributes. The easiest way is by setting `attributes` on the `polymer-element` see here:
http://jsbin.com/cogowopu/9/edit Other notes: - I forgot to mention that I loaded a newer version of polymer than in your original example - the `style` tag should be inside the `<template>` Scott On Mon, Mar 3, 2014 at 11:55 AM, Mohsen Azimi <[email protected]> wrote: > Scott, that is brilliant! I love the binary logic you've added. For using > attributes it seems that I'm missing something. In this example > <http://jsbin.com/cogowopu/7/edit>I tried using a "label" optional > attribute for putting a label on "all" checkbox. But it didn't seem to work > the way I was expecting. It's picking up default attribute no matter if I > pass the label attribute or not. I followed > this<https://github.com/Polymer/polymer-ui-menu/blob/master/polymer-ui-menu.html>example > for using attributes. > > > On Monday, March 3, 2014 10:56:36 AM UTC-8, Scott Miles wrote: > >> http://jsbin.com/cogowopu/6/edit >> >> I believe Steve already explained most of what I did here. Please follow >> up if there is something you don't understand. >> >> >> On Mon, Mar 3, 2014 at 10:45 AM, Mohsen Azimi <[email protected]> wrote: >> >>> Opps! I forgot to paste new code. Here it is: >>> http://jsbin.com/cogowopu/5/edit >>> >>> >>> On Monday, March 3, 2014 10:45:16 AM UTC-8, Mohsen Azimi wrote: >>>> >>>> Thank for you comments. I've updated my element. Now I'm using your >>>> advice to make it better. >>>> >>>> Couple of issues: >>>> >>>> 1. domReady doesn't seem to work. When I put a breakpoint inside a >>>> domReady method it doesn't stop there. >>>> 2. When clicking on "all" checkbox, this.$.group.innerHTML is >>>> "<content></content>". I can't see my checkboxes. >>>> >>>> Could you please review my code again? >>>> >>>> >>>> On Sunday, March 2, 2014 3:25:52 PM UTC-8, Mohsen Azimi wrote: >>>>> >>>>> Hi, >>>>> >>>>> I just started using Polymer. It's great and easy to pick up. My first >>>>> element is a grouped checkbox. Like ones that exist in native platforms. >>>>> There is a "select all" checkbox that select all options. >>>>> >>>>> Here is my element: >>>>> http://jsbin.com/cogowopu/1/edit >>>>> >>>>> I have three questions: >>>>> >>>>> 1. Is it recommended to use native HTML elements in our elements? If >>>>> so, how we can make a modified version of them? In this case, I need a >>>>> checkbox that supports "some checked" statue. (usually a solid square >>>>> inside of it). I want to use the CSS that defines checkbox appearance so I >>>>> can make my modified version looks like native ones in each platform. >>>>> Where >>>>> can I get that CSS? >>>>> >>>>> 2. Why event.target is replaced with event.srcElement? What is >>>>> event.target now? >>>>> >>>>> 3. How can I avoid using "that"? >>>>> >>>> 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/f1ec3676-8f7d-4054-97d9-7d83c86d5041% >>> 40googlegroups.com<https://groups.google.com/d/msgid/polymer-dev/f1ec3676-8f7d-4054-97d9-7d83c86d5041%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> 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/175d5b8e-5a4d-4d90-8a86-7953331391ba%40googlegroups.com<https://groups.google.com/d/msgid/polymer-dev/175d5b8e-5a4d-4d90-8a86-7953331391ba%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/groups/opt_out. > 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/CAHbmOLa4mMLUqJDLEogHE4y856KNd2%3DGvr9HmAXM7EtDk42XAQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
