|
CppCMS
|
This class represent an HTML checkbox input element. More...
#include <cppcms/form.h>
Public Member Functions | |
| checkbox (std::string const &type) | |
| checkbox () | |
| bool | value () |
| void | value (bool is_set) |
| std::string | identification () |
| void | identification (std::string const &) |
| virtual void | render_value (form_context &context) |
| virtual void | load (http::context &context) |
This class represent an HTML checkbox input element.
| cppcms::widgets::checkbox::checkbox | ( | std::string const & | type | ) |
The constructor that allows you to specify type HTML attribute. It is passed to the constructor of the base_html_input class.
Default constructor.
| std::string cppcms::widgets::checkbox::identification | ( | ) |
Get the unique identification string of the checkbox.
| void cppcms::widgets::checkbox::identification | ( | std::string const & | ) |
Set the unique identification string of the checkbox. It is useful when you want to have many options with the same name.
| virtual void cppcms::widgets::checkbox::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::checkbox::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::checkbox::value | ( | ) |
Return true if the checkbox was checked (selected).
| void cppcms::widgets::checkbox::value | ( | bool | is_set | ) |
Set the state as checked.
1.7.6.1