We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: