Skip to content

Commit

Permalink
PortableInfoboxBuilder: add support for format
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored May 12, 2024
1 parent 4fcb828 commit 4fec503
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/PortableInfoboxBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
placeholder: this.msg( 'nodeparam-label' ),
disabled: true
} );
this.nodeInputFormat = new OO.ui.TextInputWidget( {
placeholder: this.msg( 'nodeparam-format' ),
disabled: true
} );
this.nodeInputDefault = new OO.ui.TextInputWidget( {
placeholder: this.msg( 'nodeparam-default' ),
disabled: true
Expand Down Expand Up @@ -154,6 +158,12 @@
help: this.msg( 'nodeparamhelp-label', [], true ),
disabled: true
} ).$element,
new OO.ui.FieldLayout( this.nodeInputFormat, {
label: this.msg( 'nodeparam-format' ),
align: 'top',
help: this.msg( 'nodeparamhelp-format', [], true ),
disabled: true
} ).$element,
new OO.ui.FieldLayout( this.nodeInputDefault, {
label: this.msg( 'nodeparam-default' ),
align: 'top',
Expand All @@ -180,6 +190,7 @@

this.toggleNodeMenuWidget( this.nodeInputSource, supports.source, 'source' );
this.toggleNodeMenuWidget( this.nodeInputLabel, supports.label, 'label' );
this.toggleNodeMenuWidget( this.nodeInputFormat, supports.format, 'format' );
this.toggleNodeMenuWidget( this.nodeInputDefault, supports.default, 'default' );
this.toggleNodeMenuWidget( this.nodeInputValue, supports.value, 'value' );
}
Expand Down

0 comments on commit 4fec503

Please sign in to comment.