CppCMS
|
This text widget behaves similarly to the text widget but uses the textarea
HTML tag rather than the input
HTML tag.
More...
#include <cppcms/form.h>
Public Member Functions | |
int | rows () |
int | cols () |
void | rows (int n) |
void | cols (int n) |
virtual void | render_input (form_context &context) |
Public Member Functions inherited from cppcms::widgets::base_text | |
std::string | value () |
void | value (std::string v) |
void | non_empty () |
void | limits (int min, int max) |
std::pair< int, int > | limits () |
void | validate_charset (bool) |
bool | validate_charset () |
virtual bool | validate () |
virtual void | load (http::context &) |
Public Member Functions inherited from cppcms::widgets::base_widget | |
base_widget () | |
bool | set () |
bool | valid () |
std::string | id () |
std::string | name () |
locale::message | message () |
bool | has_message () |
locale::message | error_message () |
bool | has_error_message () |
locale::message | help () |
bool | has_help () |
bool | disabled () |
void | disabled (bool) |
bool | readonly () |
void | readonly (bool) |
std::string | attributes_string () |
void | set (bool) |
void | valid (bool) |
void | id (std::string) |
void | name (std::string) |
void | message (std::string) |
void | message (locale::message const &) |
void | error_message (std::string) |
void | error_message (locale::message const &) |
void | help (std::string) |
void | help (locale::message const &msg) |
void | attributes_string (std::string v) |
virtual void | render (form_context &context) |
virtual void | clear () |
virtual void | render_attributes (form_context &context) |
virtual void | parent (base_form *subform) |
virtual form * | parent () |
void | pre_load (http::context &) |
Additional Inherited Members | |
Public Types inherited from cppcms::form_flags | |
enum | html_type { as_html = 0, as_xhtml = 1 } |
enum | html_list_type { as_p = 0, as_table = 1, as_ul = 2, as_dl = 3, as_space = 4 } |
enum | widget_part_type { first_part = 0, second_part = 1 } |
Protected Member Functions inherited from cppcms::widgets::base_widget | |
void | auto_generate (form_context *context=0) |
This text widget behaves similarly to the text widget but uses the textarea
HTML tag rather than the input
HTML tag.
int cppcms::widgets::textarea::cols | ( | ) |
Get the number of columns in the textarea. The default is -1 – undefined.
void cppcms::widgets::textarea::cols | ( | int | n | ) |
Set the number of columns in the textarea.
|
virtual |
This is a virtual member function that should be implemented by each widget. It executes the actual rendering of the HTML form.
Implements cppcms::widgets::base_widget.
int cppcms::widgets::textarea::rows | ( | ) |
Get the number of rows in the textarea. The default is -1 – undefined.
void cppcms::widgets::textarea::rows | ( | int | n | ) |
Set the number of rows in the textarea.