CppCMS
|
Submit button widget. More...
#include <cppcms/form.h>
Public Member Functions | |
bool | value () |
void | value (std::string val) |
void | value (locale::message const &msg) |
virtual void | render_value (form_context &context) |
virtual void | load (http::context &context) |
Submit button widget.
virtual void cppcms::widgets::submit::load | ( | http::context & | context | ) | [virtual] |
Load the form information from the provided http::context context. A user can call this function to load all information from the raw POST/GET data into the internal widget representation.
Implements cppcms::base_form.
virtual void cppcms::widgets::submit::render_value | ( | form_context & | context | ) | [virtual] |
Write the actual value of the HTML tag. Derived classes must implement this.
Implements cppcms::widgets::base_html_input.
bool cppcms::widgets::submit::value | ( | ) |
Return true if this specific button was pressed.
void cppcms::widgets::submit::value | ( | std::string | val | ) |
Set the text on the button.
void cppcms::widgets::submit::value | ( | locale::message const & | msg | ) |
Set the text on the button.