|
Wt examples
4.10.0
|
An example showing how to interact custom JavaScript with Wt stuff. More...
#include <JavascriptExample.h>
Public Member Functions | |
| JavascriptExample (const WEnvironment &env) | |
| Create the example application. | |
Private Member Functions | |
| void | confirmed () |
| The user has confirmed the payment. | |
| void | setAmount (std::string amount) |
| Set the amount to be payed. | |
Private Attributes | |
| std::unique_ptr< Popup > | promptAmount_ |
| Popup for changing the amount. | |
| std::unique_ptr< Popup > | confirmPay_ |
| Popup for paying. | |
| WText * | currentAmount_ |
| WText for showing the current amount. | |
An example showing how to interact custom JavaScript with Wt stuff.
Definition at line 24 of file JavascriptExample.h.
| JavascriptExample::JavascriptExample | ( | const WEnvironment & | env | ) |
Create the example application.
Definition at line 17 of file JavascriptExample.C.
|
private |
The user has confirmed the payment.
Definition at line 89 of file JavascriptExample.C.
|
private |
Set the amount to be payed.
Definition at line 77 of file JavascriptExample.C.
|
private |
Popup for paying.
Definition at line 46 of file JavascriptExample.h.
|
private |
WText for showing the current amount.
Definition at line 50 of file JavascriptExample.h.
|
private |
Popup for changing the amount.
Definition at line 42 of file JavascriptExample.h.