Explore some live examples of Wt below.
The source code of these (and many more) examples is included in the Wt source distribution. You may also browse through the source code of each example using the source code viewer, following the link below each example.
Cross-linked source code for these examples is also in doxygen documentation (in a new window).
This example implements a GMail-like mail composer and shows among other things how to upload files asynchronously, showing a cross-browser upload progress bar and with support for multiple files.
- The ContactSuggestions class provides auto-completion of the addressees in the To: Cc: and Bcc: fields. The widget derives from WSuggestionPopup.
- The AttachmentEdit widget uses a WFileUpload to asynchronously upload files. The upload progress bar will work even in IE6.
- The Option and OptionList classes show how stateless slots, a trick to handle events client-side but implement them still in C++, may be used even when the behaviour is not entirely stateless. In this case, the hiding of an Option affects neighboring visible options: an option needs a separator only if there is a neighbouring option. By invalidating the stateless slot implementations when state has changed, we can still use a stateless slot implementation and enjoy client-side event handling performance!