31 if ( isset( $info[
'buttonclass'] ) ) {
32 $this->mButtonClass = $info[
'buttonclass'];
34 if ( isset( $info[
'buttonid'] ) ) {
35 $this->mButtonId = $info[
'buttonid'];
37 if ( isset( $info[
'buttonname'] ) ) {
38 $this->mButtonName = $info[
'buttonname'];
40 if ( isset( $info[
'buttondefault'] ) ) {
41 $this->mButtonValue = $info[
'buttondefault'];
43 if ( isset( $info[
'buttontype'] ) ) {
44 $this->mButtonType = $info[
'buttontype'];
46 if ( isset( $info[
'buttonflags'] ) ) {
47 $this->mButtonFlags = $info[
'buttonflags'];
49 parent::__construct( $info );
58 return Html::input( $this->mButtonName, $this->mButtonValue, $this->mButtonType, $attr );
62 return new OOUI\ButtonInputWidget( [
63 'name' => $this->mButtonName,
64 'value' => $this->mButtonValue,
65 'type' => $this->mButtonType,
66 'label' => $this->mButtonValue,
67 'flags' => $this->mButtonFlags,
68 'id' => $this->mButtonId ?:
null,
69 ] + OOUI\Element::configFromHtmlAttributes(
80 return $element .
"\u{00A0}" . $this->
getInputHTML(
'' );