30 if ( isset( $info[
'buttonclass'] ) ) {
31 $this->mButtonClass = $info[
'buttonclass'];
33 if ( isset( $info[
'buttonid'] ) ) {
34 $this->mButtonId = $info[
'buttonid'];
36 if ( isset( $info[
'buttonname'] ) ) {
37 $this->mButtonName = $info[
'buttonname'];
39 if ( isset( $info[
'buttondefault'] ) ) {
40 $this->mButtonValue = $info[
'buttondefault'];
42 if ( isset( $info[
'buttontype'] ) ) {
43 $this->mButtonType = $info[
'buttontype'];
45 if ( isset( $info[
'buttonflags'] ) ) {
46 $this->mButtonFlags = $info[
'buttonflags'];
48 parent::__construct( $info );
57 return Html::input( $this->mButtonName, $this->mButtonValue, $this->mButtonType, $attr );
61 return new OOUI\ButtonInputWidget( [
62 'name' => $this->mButtonName,
63 'value' => $this->mButtonValue,
64 'type' => $this->mButtonType,
65 'label' => $this->mButtonValue,
66 'flags' => $this->mButtonFlags,
67 'id' => $this->mButtonId ?:
null,
68 ] + OOUI\Element::configFromHtmlAttributes(
79 return $element .
"\u{00A0}" . $this->
getInputHTML(
'' );