Difference between revisions of "User:Sammp/TestOOUI"

From GNU Radio
Jump to navigation Jump to search
Line 1: Line 1:
$btn = new OOUI\ButtonWidget( [
input.on( 'enter', function () {
    'label' => 'Click me!'
// 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() } ) ] ); } );