How to create custom filters

120 views
Skip to first unread message

Tim Oxley

unread,
Feb 4, 2014, 5:36:31 PM2/4/14
to polym...@googlegroups.com
I'm using data-binding where the data isn't a simple object, rather it's a document fragment.

I would like to do something like:

<some-custom-element data="{{documentFragment .items :lastChild as baz">
</some-custom-element>

dfreedm suggested on irc that a filter might be a good way to implement this, but I see not documentation for it on the polymer site.

How to create a custom filter to implement this OR perhaps is there another way?

Eric Bidelman

unread,
Feb 4, 2014, 5:40:00 PM2/4/14
to Tim Oxley, polymer-dev
We haven't documented custom filters yet, but there's some info being collected here: https://github.com/Polymer/docs/issues/225


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 polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/4b0938d4-7259-45cf-8011-61931d7b48ee%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages