Hi,
I have four questions about SelectItem.
1. How can I style individual items When I use the SelectItem like this?
In HTML I can put "style" attribute on an <option> tag...
2. How can I create a single-selection SelectItem that is rendered using <select>?
3. Is there a built-in multi-selection widget that would look like a list rendered using <select> but with check boxes next to every item?
4. Is it possible to use auto-complete if I use a SelectItem like this, or will I have to build such a control myself?
Kind regards,
Michał
I have four questions about SelectItem.
1. How can I style individual items When I use the SelectItem like this?
Code:
geneItem.setMultiple( true );
geneItem.setMultipleAppearance( MultipleAppearance.GRID );
geneItem.setValueMap( ... );
2. How can I create a single-selection SelectItem that is rendered using <select>?
3. Is there a built-in multi-selection widget that would look like a list rendered using <select> but with check boxes next to every item?
4. Is it possible to use auto-complete if I use a SelectItem like this, or will I have to build such a control myself?
Code:
final SelectItem item = new SelectItem();
item.setTitle( ... );
item.setOptionDataSource( ... );
item.setValueField( "Id" );
item.setDisplayField( "LastName" );
item.setPickListFields( ... );
Michał