User:Sammp/TestOOUI: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
input.on( 'enter', function () { | |||
// Add the item | |||
] ); | list.addItems( [ | ||
new OO.ui.OptionWidget( { | |||
data: input.getValue(), | |||
label: input.getValue() | |||
} ) | |||
] ); | |||
} ); |
Revision as of 22:10, 19 February 2022
input.on( 'enter', function () { // Add the item list.addItems( [ new OO.ui.OptionWidget( { data: input.getValue(), label: input.getValue() } ) ] ); } );