How to use the @uifabric/experiments/lib/Form.Validators.minLength function in @uifabric/experiments

To help you get started, we’ve selected a few @uifabric/experiments 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 OfficeDev / office-ui-fabric-react / packages / experiments / src / components / Form / examples / Form.Autosave.Example.tsx View on Github external
public render(): JSX.Element {
    return (
      <div>
        <form>
           'Must be less than 10 characters')]}
          /&gt;
           'Must be greater than 10 characters')]}
          /&gt;
          
           {
                if (value) {
                  const date = new Date();
                  date.setDate(date.getDate() - 1);
                  if (value.getTime() &lt; date.getTime()) {
                    return 'Date must be today or later';</form></div>
github OfficeDev / office-ui-fabric-react / packages / experiments / src / components / Form / examples / Form.Validation.Example.tsx View on Github external
public render(): JSX.Element {
    return (
      <div>
        <form>
           'Must be less than 10 characters')]}
          /&gt;
           'Must be greater than 10 characters')]}
          /&gt;
          
           {
                if (value) {
                  const date = new Date();
                  date.setDate(date.getDate() - 1);
                  if (value.getTime() &lt; date.getTime()) {
                    return 'Date must be today or later';</form></div>