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( )

Upvotes: 0

Views: 1170

Answers (1)

Michal K
Michal K

Reputation: 36

It's just add(Option)

select.add(one);

Upvotes: 2

Related Questions