diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js')
-rw-r--r-- | vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js b/vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js deleted file mode 100644 index e39ebcad..00000000 --- a/vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * DecoratedOptionWidgets are {@link OO.ui.OptionWidget options} that can be configured - * with an {@link OO.ui.IconElement icon} and/or {@link OO.ui.IndicatorElement indicator}. - * This class is used with OO.ui.SelectWidget to create a selection of mutually exclusive - * options. For more information about options and selects, please see the - * [OOjs UI documentation on MediaWiki][1]. - * - * @example - * // Decorated options in a select widget - * var select = new OO.ui.SelectWidget( { - * items: [ - * new OO.ui.DecoratedOptionWidget( { - * data: 'a', - * label: 'Option with icon', - * icon: 'help' - * } ), - * new OO.ui.DecoratedOptionWidget( { - * data: 'b', - * label: 'Option with indicator', - * indicator: 'next' - * } ) - * ] - * } ); - * $( 'body' ).append( select.$element ); - * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options - * - * @class - * @extends OO.ui.OptionWidget - * @mixins OO.ui.IconElement - * @mixins OO.ui.IndicatorElement - * - * @constructor - * @param {Object} [config] Configuration options - */ -OO.ui.DecoratedOptionWidget = function OoUiDecoratedOptionWidget( config ) { - // Parent constructor - OO.ui.DecoratedOptionWidget.super.call( this, config ); - - // Mixin constructors - OO.ui.IconElement.call( this, config ); - OO.ui.IndicatorElement.call( this, config ); - - // Initialization - this.$element - .addClass( 'oo-ui-decoratedOptionWidget' ) - .prepend( this.$icon ) - .append( this.$indicator ); -}; - -/* Setup */ - -OO.inheritClass( OO.ui.DecoratedOptionWidget, OO.ui.OptionWidget ); -OO.mixinClass( OO.ui.OptionWidget, OO.ui.IconElement ); -OO.mixinClass( OO.ui.OptionWidget, OO.ui.IndicatorElement ); |