Hi,

I am having a question about Boolean property value. As the doc says Boolean 
properties are set based on the *presence* of the attribute: if the 
attribute exists at all, the property is set to true, regardless of the 
attribute *value*. If the attribute is absent, the property gets its 
default value.

Here is my experiment. my-element want to use a collapseOpened property to 
bind to it's local DOM iron-collapse's property 'opened'. 

<iron-collapse opened="{{collapseOpened}}">
      some texts
</iron-collapse>

<script>
Polymer({
  is: 'my-element',

  properties: {
    collapseOpened: {
      type: Boolean,
      value: false,
    }
  },
});
</script>


Since in the 'opened' attribute is present in iron-collapse, should it be 
true? But in fact, the iron-collapse is not expanded, which indicates the 
value is false.

Any ideas?

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/71471453-ec4b-4c89-ab31-e44f901b8689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to