#include <form_field.hpp>
|
|
std::string | name |
|
std::string | type |
| | The field name.
|
|
std::string | value |
| | The HTML type (eg. 'text', 'file', ...).
|
|
std::string | placeholder |
| | The value of the field (for rendering only).
|
|
std::string | label |
| | The placeholder.
|
|
bool | required = false |
| | The label content.
|
Type to representing a single field of an HTML form.
◆ html_id()
| std::string malloy::html::form_field::html_id |
( |
| ) |
const |
|
inlinenodiscard |
Get the HTML id.
- Returns
- The HTML id.
◆ populate()
Whether a value is required.
Populate the value member from the parsed data content member.
- Note
- This will ignore/skip if the type is "password".
-
This will ignore/skip if the type is "file".
The documentation for this struct was generated from the following file: