Hi all,
I am trying to create a email picker form item the same as you get with outlook or gmail, where you type and it suggests email addresses and allows you to add multples.
From the showcase, this is a close fit...
http://www.smartclient.com/smartgwt/showcase/#multicombobox_category
All I need to do is replace the select box with an auto suggest item.
However I can not seem to get rid of the picker icon...
Is this possible, or anyone have a suggestion of a way to acheive this?
Thanks,
Dale
I am trying to create a email picker form item the same as you get with outlook or gmail, where you type and it suggests email addresses and allows you to add multples.
From the showcase, this is a close fit...
http://www.smartclient.com/smartgwt/showcase/#multicombobox_category
All I need to do is replace the select box with an auto suggest item.
However I can not seem to get rid of the picker icon...
Code:
public class EmailPickerItem extends MultiComboBoxItem { public EmailPickerItem() { setup(); } public EmailPickerItem(String name) { super(name); setup(); } public EmailPickerItem(String name, String title) { super(name, title); setup(); } private void setup() { setLayoutStyle(MultiComboBoxLayoutStyle.FLOW); setShowIcons(false); setShowPickerIcon(false); setOptionCriteria(new Criteria()); setOptionDataSource(AutoSuggestDS.getInstance("User", "emailAddress", AutoSuggestDS.AUTO_SUGGEST_TYPE.ANY_WORDS)); setDisplayField(AutoSuggestValueDto.VALUE); setValueField(AutoSuggestValueDto.VALUE); } }
Thanks,
Dale
Comment