-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Rendering rows using template tags #23
Comments
The content you supply to |
Thanks the for quick response @MaximBalaganskiy , I will have a look at instantiating the table directly, that approach had not occurred to me. |
@MaximBalaganskiy Any chance you could give me some pointers on how to instantiate and MdcDataTable directly? |
Hi,
I am using mdc-data-table and trying to render table rows for all the children of a collection of nested objects.
Using a normal table this would look something like this:
If I try and emulate the same, but instead of using
<tr>
's, I use<mdc-data-table-row>
's, the resulting<mdc-data-table-content>
in the rendered Aurelia view is completely empty.Looking at the code in mdc-data-table.js, is see querySelector is failing to return any elements.
var rows = (_g = element.querySelectorAll('mdc-data-table-content>mdc-data-table-row')) !== null && _g !== void 0 ? _g : [];
Obviously the selector
mdc-data-table-content>mdc-data-table-row
will not find anything as the selector uses immediate child whereas in my case I have a template element in between the content and row elements.Any idea how I might achieve what I want?
The text was updated successfully, but these errors were encountered: