Here's info on published properties 
- http://www.polymer-project.org/docs/polymer/polymer.html#published-properties 
& you might want to take a look at 
http://www.polymer-project.org/docs/polymer/polymer.html#automatic-node-finding 
- 
actually I recommend you just read that whole page if you haven't already, 
it will make everything much clearer :)

To get straight to the point if you have a drawer panel in your element's 
template like so:

<core-drawer-panel id="myDrawerPanel">…</core-drawer-panel>

then in your element's script you can do:

this.$.myDrawerPanel.narrow

to get it's state.


On Saturday, June 28, 2014 10:26:23 AM UTC-7, [email protected] wrote:
>
> Thanks for replying, 
> How can I access a polymer element propriety ? 
> I've tried : console.log(document.querySelector("core-drawer-panel 
> core-media-query"));
> console.log(document.querySelector("core-drawer-panel[narrow]"));
>
> console.log(document.querySelector("core-drawer-panel").getAttribute("narrow"));
> console.log(document.querySelector("core-drawer-panel").narrow);
> console.log(document.querySelector("core-drawer-panel").narrow_);
>
> Everything is NULL, I don't understand. Could you help me please, or give 
> me a link of the doc ? 
>
>

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/c7873325-43a4-4ab1-8cff-978a342f1e30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to