36 if ( isset( $info[
'buttonclass'] ) ) {
37 $this->mButtonClass = $info[
'buttonclass'];
39 if ( isset( $info[
'buttonid'] ) ) {
40 $this->mButtonId = $info[
'buttonid'];
42 if ( isset( $info[
'buttonname'] ) ) {
43 $this->mButtonName = $info[
'buttonname'];
45 if ( isset( $info[
'buttondefault'] ) ) {
46 $this->mButtonValue = $info[
'buttondefault'];
48 if ( isset( $info[
'buttontype'] ) ) {
49 $this->mButtonType = $info[
'buttontype'];
51 if ( isset( $info[
'buttonflags'] ) ) {
52 $this->mButtonFlags = $info[
'buttonflags'];
54 parent::__construct( $info );
63 return Html::input( $this->mButtonName, $this->mButtonValue, $this->mButtonType, $attr );
67 return new OOUI\ButtonInputWidget( [
68 'name' => $this->mButtonName,
69 'value' => $this->mButtonValue,
70 'type' => $this->mButtonType,
71 'label' => $this->mButtonValue,
72 'flags' => $this->mButtonFlags,
73 'id' => $this->mButtonId ?:
null,
74 ] + OOUI\Element::configFromHtmlAttributes(
85 return $element .
"\u{00A0}" . $this->
getInputHTML(
'' );