Wt examples
3.3.0
|
A suggestion popup suggesting contacts from an addressbook. More...
#include <ContactSuggestions.h>
Public Member Functions | |
ContactSuggestions (WContainerWidget *parent=0) | |
Create a new ContactSuggestions popup. More... | |
void | setAddressBook (const std::vector< Contact > &contacts) |
Set the address book. More... | |
![]() | |
WSuggestionPopup (const Options &options, WObject *parent=0) | |
WSuggestionPopup (const std::string &matcherJS, const std::string &replacerJS, WObject *parent=0) | |
void | forEdit (WFormWidget *edit, WFlags< PopupTrigger > popupTriggers=Editing) |
void | removeEdit (WFormWidget *edit) |
void | showAt (WFormWidget *edit) |
void | clearSuggestions () |
void | addSuggestion (const WString &suggestionText, const WString &suggestionValue=WString::Empty) |
void | setModel (WAbstractItemModel *model) |
WAbstractItemModel * | model () const |
void | setModelColumn (int index) |
void | setDefaultIndex (int row) |
int | defaultIndex () const |
void | setFilterLength (int count) |
int | filterLength () const |
Signal< WString > & | filterModel () |
Signal< int, WFormWidget * > & | activated () |
void | setGlobalPopup (bool global) |
![]() | |
virtual void | setHidden (bool hidden, const WAnimation &animation=WAnimation()) |
Additional Inherited Members | |
![]() | |
enum | PopupTrigger |
![]() | |
static std::string | generateMatcherJS (const Options &options) |
static std::string | generateReplacerJS (const Options &options) |
![]() | |
Editing | |
DropDownIcon | |
![]() | |
virtual void | render (WFlags< RenderFlag > flags) |
A suggestion popup suggesting contacts from an addressbook.
This popup provides suggestions from a list of contact, by matching parts of the name or email adress with the current value being edited. It also supports editing a list of email addresses.
The popup is only available when JavaScript is available, and is implemented entirely on the client-side.
Definition at line 32 of file ContactSuggestions.h.
ContactSuggestions::ContactSuggestions | ( | WContainerWidget * | parent = 0 | ) |
void ContactSuggestions::setAddressBook | ( | const std::vector< Contact > & | contacts | ) |