# all files / src/widgets/ TabOptionWidget.js

50% Statements 3/6
0% Branches 0/2
0% Functions 0/1
50% Lines 3/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36

    1×

    1×

    1×
     /**
     * TabOptionWidget is an item in a {@link OO.ui.TabSelectWidget TabSelectWidget}.
     *
     * Currently, this class is only used by {@link OO.ui.IndexLayout index layouts}, which contain
     * {@link OO.ui.TabPanelLayout tab panel layouts}. See {@link OO.ui.IndexLayout IndexLayout}
     * for an example.
     *
     * @class
     * @extends OO.ui.OptionWidget
     *
     * @constructor
     * @param {Object} [config] Configuration options
     */
    OO.ui.TabOptionWidget = function OoUiTabOptionWidget( config ) {
    	// Configuration initialization
    	config = config || {};

    	// Parent constructor
    	OO.ui.TabOptionWidget.parent.call( this, config );

    	// Initialization
    	this.$element.addClass( 'oo-ui-tabOptionWidget' );
    };

    /* Setup */

    OO.inheritClass( OO.ui.TabOptionWidget, OO.ui.OptionWidget );

    /* Static Properties */

    /**
     * @static
     * @inheritdoc
     */
    OO.ui.TabOptionWidget.static.highlightable = false;