We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<polymer-element name="ui-download-percentage"> <template> <style> @host { ui-download-percentage { } } </style> <svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"> <path transform="matrix(1,0,0,1,-28,96)"/> </svg> </template> <script> Polymer('ui-download-percentage', { enteredDocument: function () { var pathEl = this.impl.querySelector('svg>path'); } }); </script> </polymer-element>
like this? how to get template generate element? what's enteredDocument callback ?
The text was updated successfully, but these errors were encountered:
This is a great question for stack overflow :) Closing this as it's not a request/bug. report
To answer your question, the best way is to add an id to <path> and reference it that way:
<path>
<path id="path" transform="matrix(1,0,0,1,-28,96)"/> .... enteredDocument: function () { var pathEl = this.$.path }
Full example: http://jsbin.com/arumUq/3/edit
enteredDocument (now enteredView maps to the custom element lifecycle callback, enteredViewCallback: http://www.polymer-project.org/polymer.html#lifecyclemethods
enteredDocument
enteredView
enteredViewCallback
For your case, you can stick with the created callback.
created
Sorry, something went wrong.
No branches or pull requests
like this? how to get template generate element?
what's enteredDocument callback ?
The text was updated successfully, but these errors were encountered: