Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 488 Bytes

README.md

File metadata and controls

24 lines (23 loc) · 488 Bytes

Backbone-FormView

FormView is a simple mechanism to help creating form in the BackboneJS

Example

var formOBJ = {
	action : "http://www.example.com/test",
	method : "post",
	// form inputs
	inputs : {
		username : {
			type    : "text",
			default : "test",
			label   : "Username"
		},
		password : {
			type  : "password",
			label : "password"
		}
	}
};
var formView = new Backbone.FormView( { form : formOBJ } );
$("#form-container").html( formView.render() );