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