backbone-forms

Using customized layouts and variable no of fields with backbone forms

巧了我就是萌 提交于 2019-12-11 23:23:24
问题 I am working on an application in which I am using backbone-forms.js for generating dynamic forms. So at present we are able to generate simple forms having a label and input element like this But actually I have to change the arrangement of the fields.In each row I will be having one label,two input fields. So I wanna ask is it possible to generate forms like this dynamically with backbone forms. Ifwe will use a full customized template then there is no meaning of using this framework. So is

How to initialize the selection for rails-select2 in BackboneForms schema?

风流意气都作罢 提交于 2019-12-04 06:46:19
问题 The project uses marionette-rails, backbone-on-rails, select2-rails and this port to BackboneForms to provide a multiselect form field. The select options are available to the user. They are retrieved from the collection containing the total list of options: MyApp.module("Products", function(Products, App, Backbone, Marionette, $, _) { Products.CustomFormView = Products.CustomView.extend({ initialize: function(options) { this.model.set("type", "Product"); Products.EntryView.prototype