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

Two-way binding for grouped checkbox inputs #312

Closed
Rich-Harris opened this issue Feb 28, 2017 · 0 comments
Closed

Two-way binding for grouped checkbox inputs #312

Rich-Harris opened this issue Feb 28, 2017 · 0 comments
Milestone

Comments

@Rich-Harris
Copy link
Member

Similar to #311, except with checkboxes. Ractive equivalent is here. If we adopted the proposal in #311, then the same logic applied to this case would result in...

<label>
  <input type="checkbox" value="Alpha" name='whatever' bind:group='selected' />Alpha
</label>

...where selected was an array with the values of all the currently checked checkboxes with name='whatever'.

@Rich-Harris Rich-Harris added this to the ASAP milestone Mar 1, 2017
Rich-Harris added a commit that referenced this issue Mar 17, 2017
Rich-Harris added a commit that referenced this issue Mar 17, 2017
Rich-Harris added a commit that referenced this issue Mar 17, 2017
Rich-Harris added a commit that referenced this issue Mar 17, 2017
bind:group for checkbox inputs
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

1 participant