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-reports"> <template> <template if="{{reportsDetails&&reportsDetails.reports}}"> <ul> <template repeat="{{item in reportsDetails.reports}}"> <li on-tap="reportTap" doc-id="{{item.OBJID}}"></li> </template> </ul> </template> <script> Polymer('ui-reports', { reportsDetails : null, reportTap : function (e) { if (e.path) { var self = this; e.path.forEach(function (item) { if (item.getAttribute) { var docId = item.getAttribute('doc-id'); if (docId) { self.fire('report-tap', {docId: docId}); return false; } } }); } } }); </script> </polymer-element>
I write with this.I don't know how to get li element
The text was updated successfully, but these errors were encountered:
I believe what you are looking for is this:
reportTap: function (e, detail, sender) { this.fire('report-tap', {docId: sender.getAttribute('doc-id')}); }
Sorry, something went wrong.
thank,docment is a lite ... Can not be compared with angularjs
No branches or pull requests
I write with this.I don't know how to get li element
The text was updated successfully, but these errors were encountered: