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
I do not know how to create a pull request, so adding this to issues:
It would be nice to add a "templates" property to allow the user to override the global templates for some types.
Code change in FormSchema.js
var defaultTemplates = require('tcomb-form-native/lib/templates/bootstrap'); // -> NEW
type Props = { data: Object, schema: Object, stylesheet?: Object, templates?: Object // -> NEW };
options: { ...getFormOptions(props.schema), stylesheet: props.stylesheet, templates: Object.assign(defaultTemplates, props.templates) // -> NEW }
This is just an example how to implement this, maybe there is an even better solution.
const templates = {"select":select}; ...
Thanks in advance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I do not know how to create a pull request, so adding this to issues:
It would be nice to add a "templates" property to allow the user to override the global templates for some types.
Code change in FormSchema.js
var defaultTemplates = require('tcomb-form-native/lib/templates/bootstrap'); // -> NEW
type Props = {
data: Object,
schema: Object,
stylesheet?: Object,
templates?: Object // -> NEW
};
options: {
...getFormOptions(props.schema),
stylesheet: props.stylesheet,
templates: Object.assign(defaultTemplates, props.templates) // -> NEW
}
This is just an example how to implement this, maybe there is an even better solution.
const templates = {"select":select};
...
Thanks in advance
The text was updated successfully, but these errors were encountered: