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

<vaadin-checkbox-group> #98

Closed
tomivirkki opened this issue Jun 18, 2018 · 0 comments
Closed

<vaadin-checkbox-group> #98

tomivirkki opened this issue Jun 18, 2018 · 0 comments
Labels
epic Big feature that has subtasks

Comments

@tomivirkki
Copy link
Member

tomivirkki commented Jun 18, 2018

Create a <vaadin-checkbox-group> element whose value derives from the <vaadin-checkbox>es wrapped inside of it.

Here's how you'd use the component:

<vaadin-checkbox-group>
  <vaadin-checkbox value="apples"></vaadin-checkbox>
  <vaadin-checkbox value="oranges"></vaadin-checkbox>
  <vaadin-checkbox value="bananas"></vaadin-checkbox>
</vaadin-checkbox-group>

The value of the component should be of type Array consisting of string values of the checkboxes in the similar fashion the <vaadin-radio-group>'s value is derived from the contained <vaadin-radio-button>'s.

Changing the value array should check the matching contained checkboxes and uncheck the ones that don't match.

The <vaadin-checkbox-group> doesn't need special handling for arrow keys like <vaadin-radio-group> does.

Label
Form validation APIs built-in

Inspiration:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Big feature that has subtasks
Projects
None yet
Development

No branches or pull requests

2 participants