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

Example with External Options (and Polymer 2.0 Compatibility) #6

Open
craigcecil opened this issue Oct 19, 2016 · 2 comments
Open

Example with External Options (and Polymer 2.0 Compatibility) #6

craigcecil opened this issue Oct 19, 2016 · 2 comments

Comments

@craigcecil
Copy link

craigcecil commented Oct 19, 2016

The existing demo.html shows how to consume this element using a dom-element to define another custom element (such as demo-1) that also supplies the options.

Can you provide an example that just consumes the select is="select-with-options" and supplies 'options' via JS?

Also, are there any plans to upgrade this component to be compatible with Polymer 2.0's announcement of strongly discouraging the use of the 'is' attribute?

@ssshake
Copy link

ssshake commented Nov 28, 2016

If I understand your request for the demo correctly we are setting the options via javascript, inside the polymer object. If you wanted to dynamically update the list, say after an ajax call, you would just do something like this/

this.set('options', results);

Sorry for the delay. I don't have any current plans to roll a 2.0 version of this component. We aren't using 2.0 yet with any of our customers. It would be nice if someone else from the community who needs this for 2.0 forks this and makes the necessary changes. I don't have time right now to invest in learning what needs to be done.

@slawomir-brzezinski-at-interxion
Copy link
Contributor

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

No branches or pull requests

3 participants