How to use the Form function from backbone
Find comprehensive JavaScript backbone.Form code examples handpicked from public code repositorys.
GitHub: toHero/cartodb
![toHero profile picture](/toHero.png?size=40)
12 13 14 15 16 17 18 19 20 21
var INPUT_TYPE_MAP = { 'size': InputNumber, 'color': InputColor }; Backbone.Form.editors.Fill = Backbone.Form.editors.Base.extend({ className: 'Form-InputFill CDB-OptionInput CDB-Text js-input', events: { focus: function () {
+ 5 other calls in file
GitHub: chrislintott/cartodb
![chrislintott profile picture](/chrislintott.png?size=40)
1 2 3 4 5 6 7 8 9 10
var _ = require('underscore'); var $ = require('jquery'); var TipsyTooltipView = require('../tipsy-tooltip-view.js'); var Clipboard = require('clipboard'); Backbone.Form.Field = Backbone.Form.Field.extend({ initialize: function (options) { this.trackingClass = options.trackingClass; this.constructor.__super__.initialize.apply(this, arguments);
177 178 179 180 181 182 183 184 185 186
type: 'TextArea' } }; var observation = this.observationModel.toJSON(); this.formObs = new Backbone.Form({ model: this.observationModel, template: require('./form_observation.tpl.html'), schema: formSchema, templateData: {
+ 3 other calls in file
backbone.View is the most popular function in backbone (151 examples)