How to use the uniforms/AutoForm.Auto function in uniforms

To help you get started, we’ve selected a few uniforms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github focallocal / fl-maps / imports / client / utils / uniforms-custom / AutoForm.js View on Github external
const Auto = parent => class extends AutoForm.Auto(parent) {
    static Auto = Auto;
    onChange (key, value) {
      // starting date should not be later than ending date
      if (key === 'when.endingDate' && value < this.getModel().when.startingDate) {
        super.onChange('when.startingDate', value)
      } else if (key === 'when.startingDate' && value > this.getModel().when.endingDate) {
        super.onChange('when.endingDate', value)
      }
      // pass on all changes to super
      super.onChange(key, value)
    }
}
github vazco / uniforms / packages / uniforms-material / src / AutoForm.tsx View on Github external
const Auto = (parent: any): any =>
  class extends AutoForm.Auto(parent) {
    static Auto = Auto;
  };
github vazco / uniforms / packages / uniforms-unstyled / src / AutoForm.js View on Github external
const Auto = parent =>
  class extends AutoForm.Auto(parent) {
    static Auto = Auto;
  };
github vazco / uniforms / packages / uniforms-bootstrap3 / src / AutoForm.tsx View on Github external
const Auto = (parent: any): any =>
  class extends AutoForm.Auto(parent) {
    static Auto = Auto;
  };
github vazco / uniforms / packages / uniforms-antd / src / AutoForm.tsx View on Github external
const Auto = (parent: any): any =>
  class extends AutoForm.Auto(parent) {
    static Auto = Auto;
  };
github vazco / uniforms / packages / uniforms-semantic / src / AutoForm.tsx View on Github external
const Auto = (parent: any): any =>
  class extends AutoForm.Auto(parent) {
    static Auto = Auto;
  };
github vazco / uniforms / packages / uniforms-bootstrap4 / src / AutoForm.tsx View on Github external
const Auto = (parent: any): any =>
  class extends AutoForm.Auto(parent) {
    static Auto = Auto;
  };