Class: FormSerializerData

FormSerializerData

An object that holds form data and can output it in different ways

Constructor

new FormSerializerData(dataopt)

Constructor
Parameters:
Name Type Attributes Default Description
data object <optional>
{}
Source:

Methods

set(data) → {FormSerializerData}

Set the data
Parameters:
Name Type Description
data object
Source:
Returns:
Type
FormSerializerData

toObject() → {object}

Convert the data to an object
Source:
Returns:
Type
object

toOrderedString() → {string}

Convert the data to an ordered serialized string
Source:
Returns:
Type
string

toString() → {string}

Convert the data to a serialized string
Source:
Returns:
Type
string

toValue() → {*}

Convert the data into a single value. This is only useful if the form only has one input.
Source:
Returns:
Type
*