| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
function ParamLabelWidget() { |
| 9 |
ParamLabelWidget.super.call( |
| 10 |
this, |
| 11 |
{ classes: [ 'oo-ui-inline-help' ] } |
| 12 |
); |
| 13 |
} |
| 14 |
|
| 15 |
OO.inheritClass( ParamLabelWidget, OO.ui.LabelWidget ); |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
ParamLabelWidget.prototype.addDescription = function ( $description ) { |
| 21 |
this.$element.append( |
| 22 |
$( '<div>' ).addClass( 'description' ).append( $description ) |
| 23 |
); |
| 24 |
}; |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
ParamLabelWidget.prototype.addInfo = function ( $info ) { |
| 30 |
this.$element.append( |
| 31 |
$( '<div>' ).addClass( 'info' ).append( $info ) |
| 32 |
); |
| 33 |
}; |
| 34 |
|
| 35 |
module.exports = ParamLabelWidget; |