remove the incomplete radiogroup

This commit is contained in:
Keegan
2016-02-02 21:06:28 -08:00
parent a4060e62f7
commit 66f2b05129
4 changed files with 0 additions and 46 deletions
-11
View File
@@ -1,11 +0,0 @@
'use strict';
module.exports = {
name: 'radiogroup',
template: require('../../templates/components/radiogroup.tpl'),
manipulator: require('../lib/manipulators').radiogroup,
defaults: {
label: '',
options: []
}
};
-1
View File
@@ -22,7 +22,6 @@ clayConfig.on(clayConfig.EVENTS.BEFORE_BUILD, function() {
this.registerComponent(require('./components/color')); this.registerComponent(require('./components/color'));
this.registerComponent(require('./components/select')); this.registerComponent(require('./components/select'));
this.registerComponent(require('./components/toggle')); this.registerComponent(require('./components/toggle'));
this.registerComponent(require('./components/radiogroup'));
this.registerComponent(require('./components/submit')); this.registerComponent(require('./components/submit'));
}); });
-18
View File
@@ -43,23 +43,5 @@ module.exports = {
return this.$manipulatorTarget.set('disabled', false) return this.$manipulatorTarget.set('disabled', false)
.trigger('change'); .trigger('change');
} }
},
radiogroup: {
get: function() {
return this.$manipulatorTarget.find('input:checked').val();
},
set: function(value) {
this.$manipulatorTarget.find('[value="' + value + '"]')
.prop('checked', true);
return this.$manipulatorTarget.trigger('change');
},
disable: function() {
return this.$manipulatorTarget.set('disabled', true)
.trigger('change');
},
enable: function() {
return this.$manipulatorTarget.set('disabled', false)
.trigger('change');
}
} }
}; };
-16
View File
@@ -1,16 +0,0 @@
<div class="">
<span class="label">{{{label}}}</span>
<div data-manipulator-target>
{{each options}}
<label class="item">
<span class="label">{{{this.label}}}</span>
<input
type="radio"
class="item-radio"
name="{{this.index}}"
value="{{this.value}}"
/>
</label>
{{/each}}
</div>
</div>