diff --git a/src/scripts/components/radiogroup.js b/src/scripts/components/radiogroup.js deleted file mode 100644 index 530318e..0000000 --- a/src/scripts/components/radiogroup.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = { - name: 'radiogroup', - template: require('../../templates/components/radiogroup.tpl'), - manipulator: require('../lib/manipulators').radiogroup, - defaults: { - label: '', - options: [] - } -}; diff --git a/src/scripts/config-page.js b/src/scripts/config-page.js index 1ed9811..0d5ddc2 100755 --- a/src/scripts/config-page.js +++ b/src/scripts/config-page.js @@ -22,7 +22,6 @@ clayConfig.on(clayConfig.EVENTS.BEFORE_BUILD, function() { this.registerComponent(require('./components/color')); this.registerComponent(require('./components/select')); this.registerComponent(require('./components/toggle')); - this.registerComponent(require('./components/radiogroup')); this.registerComponent(require('./components/submit')); }); diff --git a/src/scripts/lib/manipulators.js b/src/scripts/lib/manipulators.js index 62a4ede..cb33836 100755 --- a/src/scripts/lib/manipulators.js +++ b/src/scripts/lib/manipulators.js @@ -43,23 +43,5 @@ module.exports = { return this.$manipulatorTarget.set('disabled', false) .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'); - } } }; diff --git a/src/templates/components/radiogroup.tpl b/src/templates/components/radiogroup.tpl deleted file mode 100644 index 9e3f4a5..0000000 --- a/src/templates/components/radiogroup.tpl +++ /dev/null @@ -1,16 +0,0 @@ -
- {{{label}}} -
- {{each options}} - - {{/each}} -
-