Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Four questions about SelectItem

    Hi,

    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( ... );
    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?
    Code:
        final SelectItem item = new SelectItem();
        item.setTitle( ... );
        item.setOptionDataSource( ... );
        item.setValueField( "Id" );
        item.setDisplayField( "LastName" );
        item.setPickListFields( ... );
    Kind regards,
    Michał
Working...
X