Search code examples
javagwthtml-selectgwtbootstrap3

gwtbootstrap3 Select - add Options


Using GWTBootstrap3 how do I add options to the select ? And I don't find any method similar to addOptions( ).

I also tried setValue(option), setValues(option), setValue(string), setValues(string). But doesn't populate the select.

Option one = new Option( ); 
one.setText( "option one" ); 
one.setId( " " + i );

select.setValues( one ); 
select.refresh( );

Would prefer help on addOptions( ) rather than setValue( )


Solution

  • It's just add(Option)

    select.add(one);