public struct FormAction
FormAction describing the form and and its fields.
Initializes the form action from its elements.
public init(title: String, fields: [FormField])
the identifier for this action
the form title
the form’s fields, at least one field must be of type
Creates a form action from attributes.
Attributes are expected to include:
title a simple string containing the title of the form.
inputs an array of inputs, it’s ok to include the submit button as a
FormField: but they will be discarded and only the the title of the 1st button will be used as the
public init?(id: String, attributes: AnyObject?)
the form id