Skip to content

Commit

Permalink
Merge pull request #765 from kumy/patch-1
Browse files Browse the repository at this point in the history
Add controlType in radio examples
  • Loading branch information
simonihmig committed Mar 5, 2019
2 parents d727881 + c1a77de commit c70e1d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/components/base/bs-form/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const nonDefaultLayouts = A([
```hbs
{{#bs-form model=this onSubmit=(action "submit") as |form|}}
{{form.element label="Gender" options=genderOptions optionLabelPath="title" property="gender"}}
{{form.element controlType="radio" label="Gender" options=genderOptions optionLabelPath="title" property="gender"}}
{{/bs-form}}
```
Expand All @@ -63,7 +63,7 @@ const nonDefaultLayouts = A([
```hbs
{{#bs-form model=this onSubmit=(action "submit") as |form|}}
{{#form.element label="Gender" options=genderOptions property="gender" as |el|}}
{{#form.element controlType="radio" label="Gender" options=genderOptions property="gender" as |el|}}
{{el.control inline=true}}
{{/form.element}}
{{/bs-form}}
Expand Down

0 comments on commit c70e1d2

Please sign in to comment.