Represents information entered into a html form. It maps field names to their current selected value.
Public Member Functions | |
FormData (Dictionary< string, string > fields) | |
Creates a new form with the given field/value pairs. More... | |
bool | Checked (string name) |
Provides a way of easily checking if a named checkbox is checked. More... | |
WWWForm | ToUnityForm () |
Converts this form data to a unity form. More... | |
string | ToUrlString () |
Converts this form data into a string suitable for use in post or gets. More... | |
Public Attributes | |
Element | form |
The source form element. More... | |
Properties | |
string | this[string name] [get] |
Gets the value of the named input element. More... | |
Private Attributes | |
Dictionary< string, string > | RawFields |
The internal dictionary which holds the field/value pairs. More... | |
|
inline |
Creates a new form with the given field/value pairs.
fields | A dictionary holding the field/value pairs from the form. |
|
inline |
Provides a way of easily checking if a named checkbox is checked.
name | The field name of the checkbox. |
|
inline |
Converts this form data to a unity form.
|
inline |
Converts this form data into a string suitable for use in post or gets.
Element PowerUI.FormData.form |
The source form element.
|
private |
The internal dictionary which holds the field/value pairs.
|
get |
Gets the value of the named input element.
name | The field name. |