Open e2jk opened 9 years ago
A model containing this props (extract):
props
numberOfRecords: ['number', false, '']
generates the following form by calling $ ampersand gen form client/models/object.js (extract)
$ ampersand gen form client/models/object.js
new InputView({ label: "Number Of Records", name: "numberOfRecords", value: this.model.numberOfRecords || "", required: false, placeholder: "Number Of Records", parent: this })
The dataType is defined as "number" in the model, the form needs a corresponding type: 'number'.
type: 'number'
I suppose changes need to be done to lib/gen-types/form.js and lib/templates/input.js, please advise.
lib/gen-types/form.js
lib/templates/input.js
A model containing this
props
(extract):generates the following form by calling
$ ampersand gen form client/models/object.js
(extract)The dataType is defined as "number" in the model, the form needs a corresponding
type: 'number'
.I suppose changes need to be done to
lib/gen-types/form.js
andlib/templates/input.js
, please advise.