Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit bf39c6f

Browse files
adamdurenKent C. Dodds
authored andcommitted
feat(radio): Allow inline property
Add the option to make a radio field inline. (#96) * Update radio.js * Update radio.html
1 parent 64a9802 commit bf39c6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/types/radio.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="radio-group">
2-
<div ng-repeat="(key, option) in to.options" class="radio">
2+
<div ng-repeat="(key, option) in to.options" ng-class="{ 'radio': !to.inline, 'radio-inline': to.inline }">
33
<label>
44
<input type="radio"
55
id="{{id + '_'+ $index}}"

src/types/radio.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export default ngModule => {
1313
templateOptions: {
1414
options: check.arrayOf(check.object),
1515
labelProp: check.string.optional,
16-
valueProp: check.string.optional
16+
valueProp: check.string.optional,
17+
inline: check.bool.optional,
1718
}
1819
})
1920
});

0 commit comments

Comments
 (0)