How to use the Form function from backbone

Find comprehensive JavaScript backbone.Form code examples handpicked from public code repositorys.

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 () {
fork icon676
star icon0
watch icon3

+ 5 other calls in file

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);
fork icon675
star icon0
watch icon2

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: {
fork icon0
star icon1
watch icon12

+ 3 other calls in file