Class: BootstrapForm

BootstrapForm

A form with bootstrap feedback

Constructor

new BootstrapForm(options)

Constructor
Parameters:
Name Type Description
options object
Source:

Extends

Methods

appendSerializedData() → {Form}

Append serialized data
Parameters:
Type Description
Inherited From:
Source:
Returns:
Type
Form

build(data) → {Form}

Build inputs from cols
Parameters:
Name Type Description
data object | Array.<object> data for a form input
Inherited From:
Source:
Returns:
Type
Form

clean() → {Form}

Remove all data from the form and reset it
Inherited From:
Source:
Returns:
Type
Form

initialize() → {Form}

Initialize as a clean form with default values from the DOM
Inherited From:
Source:
Returns:
Type
Form

lockSubmit(ms)

Lock the submit button for some amount of ms
Parameters:
Name Type Description
ms number time to lock in milliseconds
Inherited From:
Source:

populateForm(data) → {Form}

Populate form fields
Parameters:
Name Type Description
data object collection of properties whos key match an input or select name, and whos value is appropriate for that field
Inherited From:
Source:
Returns:
Type
Form

resetForm() → {Form}

Reset the form, using populated data or setting to default values
Inherited From:
Source:
Returns:
Type
Form

serializeForm() → {Form}

Public function to serialize the form, as jQuery uses serialize already
Inherited From:
Source:
Returns:
Type
Form

slideToggleForm(state) → {Form}

Slide toggle the form body
Parameters:
Name Type Description
state boolean
Inherited From:
Source:
Returns:
Type
Form

toggleButtons(state) → {Form}

Toggle the button states
Parameters:
Name Type Description
state boolean
Inherited From:
Source:
Returns:
Type
Form

toggleForm(state) → {Form}

Toggle the form body
Parameters:
Name Type Description
state boolean
Inherited From:
Source:
Returns:
Type
Form

validate() → {boolean}

Validate the form
Inherited From:
Source:
Returns:
Type
boolean