<FormCheckboxGroup
@errors={{this.validationErrors}}
@label="Checkbox group"
as |Checkbox|
>
<Checkbox
@name="isChecked"
@label="Checkbox"
@checked={{this.isChecked}}
@onChange={{this.setIsChecked}}
/>
<Checkbox
@name="isChecked2"
@label="Checkbox 2"
@checked={{this.isChecked2}}
@onChange={{this.setIsChecked2}}
/>
</FormCheckboxGroup>
Element: HTMLDivElement
Name | Type | Default | Description |
---|---|---|---|
containerClass
|
string
|
- | CSS classes to be added in the container element |
errors
|
enum
|
- | A list of errors or a single text describing the error |
hasError
|
boolean
|
- | If has errors |
hasSubmitted
|
boolean
|
- | If the form has been submitted, used to force displaying errors |
hint
|
string
|
- | A help text to be displayed |
isInline
|
boolean
|
- | If the Checkbox should be in one line |
label
|
string
|
- | The group label |
onChange
|
function
|
- | Default callback added to the yielded FormCheckbox component, called when onchange is triggered |
showError
|
boolean
|
- | Force displaying errors |
size
|
enum
|
- | The size |
Name | Type | Default | Description |
---|---|---|---|
default
*
|
Array
|
- |