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

Set/Map properties #2074

Closed
Jamtis opened this issue Jul 13, 2015 · 1 comment
Closed

Set/Map properties #2074

Jamtis opened this issue Jul 13, 2015 · 1 comment

Comments

@Jamtis
Copy link

Jamtis commented Jul 13, 2015

Hi,

I think Array are not enough today!

Polymer should support Sets and Maps as well.

Like this:

properties: {
    prop: {
        type: Set,
        value: function() {return new Set();},
        notify: true
    }
}

Therefore the Polymer.Base must support add/delete/set (set is a little difficult) functions similar to the push/splices functions for arrays.

What do you guys think?

Is this a general necessity?

How can it be accomplished?

@TimvdLippe
Copy link
Contributor

Yes you can! Please check out the JSBin in #3751 (comment) for an example.

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