summaryrefslogtreecommitdiff
path: root/minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-25 13:13:57 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-25 13:13:57 +0100
commitd25ff2bddd44b9dac1ceb248424109d1782dd211 (patch)
tree34fcfd824a1a72e7b4d431b688adcea532b62180 /minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js
parenta2cbdd1b88ac723e5e441c0a3c22636f0a8c4dfd (diff)
downloadmeta-d25ff2bddd44b9dac1ceb248424109d1782dd211.tar.gz
meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.zip
add minionlivesmatter as submodule
Diffstat (limited to 'minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js')
-rw-r--r--minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js77
1 files changed, 0 insertions, 77 deletions
diff --git a/minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js b/minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js
deleted file mode 100644
index 679c303..0000000
--- a/minionlivesmatter/templates/assets/bootstrap-material-design/js/radioInline.js
+++ /dev/null
@@ -1,77 +0,0 @@
-import Radio from './radio'
-
-const RadioInline = (($) => {
-
- /**
- * ------------------------------------------------------------------------
- * Constants
- * ------------------------------------------------------------------------
- */
- const NAME = 'radioInline'
- const DATA_KEY = `bmd.${NAME}`
- const JQUERY_NAME = `bmd${NAME.charAt(0).toUpperCase() + NAME.slice(1)}`
- const JQUERY_NO_CONFLICT = $.fn[JQUERY_NAME]
-
- const Default = {
- bmdFormGroup: {
- create: false, // no bmd-form-group creation if form-group not present. It messes with the layout.
- required: false
- }
- }
-
- /**
- * ------------------------------------------------------------------------
- * Class Definition
- * ------------------------------------------------------------------------
- */
- class RadioInline extends Radio {
-
- constructor($element, config, properties = {inputType: 'radio', outerClass: 'radio-inline'}) {
- super($element, $.extend(true, {}, Default, config), properties)
- }
-
- dispose() {
- super.dispose(DATA_KEY)
- }
-
- // ------------------------------------------------------------------------
- // protected
-
- // ------------------------------------------------------------------------
- // protected
-
- // ------------------------------------------------------------------------
- // private
-
- // ------------------------------------------------------------------------
- // static
- static _jQueryInterface(config) {
- return this.each(function () {
- let $element = $(this)
- let data = $element.data(DATA_KEY)
-
- if (!data) {
- data = new RadioInline($element, config)
- $element.data(DATA_KEY, data)
- }
- })
- }
- }
-
- /**
- * ------------------------------------------------------------------------
- * jQuery
- * ------------------------------------------------------------------------
- */
- $.fn[JQUERY_NAME] = RadioInline._jQueryInterface
- $.fn[JQUERY_NAME].Constructor = RadioInline
- $.fn[JQUERY_NAME].noConflict = () => {
- $.fn[JQUERY_NAME] = JQUERY_NO_CONFLICT
- return RadioInline._jQueryInterface
- }
-
- return RadioInline
-
-})(jQuery)
-
-export default RadioInline