-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add a way for developers to specify a 'container' element within a 'dom-repeat' template #3448
Comments
That looks like a super nice API. 👍 |
Would love to see this happen as well 👍 |
hey there, we've authored a polymer component that works around this select in IE issue pretty well (at least we think so). We'd really love some feedback. https://github.com/vehikl/polymer-select-with-options |
👍 for the idea and proposed API We are trying to workaround similar problem with https://github.com/Juicy/juicy-table-repeat and https://github.com/Juicy/juicy-select |
As transition from Shadow DOM V0 to V1 shown ( Or even single Then @tuespetre examples would become slightly more explicit, but still short and clean. Example for
|
@tomalec that is excellent. Better than my initial. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This should help with #1567 and #1735 and an additional scenario that I have run into.
As a developer, I would like to be able to specify a selector for a 'container' element within a
<template is="dom-repeat">
element so that I can successfully usedom-repeat
withtable
andselect
elements in browsers that struggle (like IE) and so that I can successfully apply simple CSS pseudo-selectors like:last-child
to the stamped child items.The
container
property of thedom-repeat
element should be a CSS selector that is used to locate the first matching descendant of the template to use as the 'container', while its contents are sliced out and used as the template for each rendered item.Example for
select
Source code:
Result of binding where
items
resolves to[{"Id":1,"Name":"One"},{"Id":2,"Name":"Two"}]
:Example for
table
Source code:
Result of binding where
items
resolves to[{"Id":1,"Name":"One"},{"Id":2,"Name":"Two"}]
:Example for CSS purposes
This example uses some Bootstrap classes to demonstrate the potential of using such a feature for styling purposes.
Source code:
Result of binding where
items
resolves to[{"Id":1,"Name":"One"},{"Id":2,"Name":"Two"}]
:The text was updated successfully, but these errors were encountered: