Skip to content
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

Support for on demand databinding #1303

Closed
paulgingrich opened this issue Mar 17, 2015 · 2 comments
Closed

Support for on demand databinding #1303

paulgingrich opened this issue Mar 17, 2015 · 2 comments

Comments

@paulgingrich
Copy link

I have a use case that is not covered by polymer today. I have a database that I want to expose as a non visual polymer component. Widgets can bind to the data in the database using mustache notation or through the polymer editor. For example,
where db is the id of the database polymer component. Because the database is large in relation to the number of entries that the application will bind to, rather than declaratively publish all entries in the database, I would like to only publish the ones that are used by other widgets on the fly on demand. Currently, the only way to do this is to duplicate the information and have the user inform the database which entries it is interested in in a declarative fashion. I would prefer something like a pre-binding event where I can validate that the entry is valid for my database, and create the onEntry() handler to responde to changes after the binding has been created.

Here is a link to further discussions on this topic:
http://stackoverflow.com/questions/28639863/how-to-dynamically-create-properties-in-polymer-as-needed/29106288

@TimvdLippe
Copy link
Contributor

@paulgingrich This is quite an old request, but Polymer 2 allows you to customize the bindings parser with overriding _parseBindings Could you confirm/deny that you can implement your usecase with that?

@TimvdLippe
Copy link
Contributor

Closing for now as I assume this is possible. Feel free to reopen if you are unable to make it work with Polymer 2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants