CppCMS
|
This class represents an HTML form input element of type text. More...
#include <cppcms/form.h>
Public Member Functions | |
text () | |
text (std::string const &type) | |
void | size (int n) |
int | size () |
virtual void | render_attributes (form_context &context) |
virtual void | render_value (form_context &context) |
This class represents an HTML form input element of type text.
Create a text field widget.
cppcms::widgets::text::text | ( | std::string const & | type | ) |
This constructor is provided for use by derived classes where it is required to change the type of the widget, like text, password, etc.
virtual void cppcms::widgets::text::render_attributes | ( | form_context & | context | ) | [virtual] |
Render standard common attributes like id, name, disabled, etc.
Reimplemented from cppcms::widgets::base_widget.
virtual void cppcms::widgets::text::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.
void cppcms::widgets::text::size | ( | int | n | ) |
Set the HTML size attribute of the widget.
int cppcms::widgets::text::size | ( | ) |
Get the HTML size attribute size of the widget. It returns -1 if it is undefined.