How to use @uifabric/date-time - 10 common examples

To help you get started, we’ve selected a few @uifabric/date-time 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 / date-time / src / components / DatePicker / examples / DatePicker.Format.Example.tsx View on Github external
public constructor(props: {}) {
    super(props);

    this.state = {
      firstDayOfWeek: DayOfWeek.Sunday,
      value: null
    };
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / DatePicker / examples / DatePicker.Basic.Example.tsx View on Github external
public constructor(props: {}) {
    super(props);

    this.state = {
      firstDayOfWeek: DayOfWeek.Sunday
    };
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / WeeklyDayPicker / examples / WeeklyDayPicker.Inline.Expandable.Example.tsx View on Github external
{' '}
              {this.props.restrictedDates.length > 0
                ? this.props.restrictedDates.map((d: Date) => d.toLocaleDateString()).join(', ')
                : 'Not set'}
            
          
        )}
        {this.props.showExpandButton && (
          <div>
            
          </div>
        )}
        
        {this.props.showNavigateButtons &amp;&amp; (
          <div>
            
            
          </div>
        )}
      
    );
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / WeeklyDayPicker / examples / WeeklyDayPicker.Inline.Example.tsx View on Github external
)}
        {this.props.restrictedDates &amp;&amp; (
          <div>
            Disabled date(s):
            <span>
              {' '}
              {this.props.restrictedDates.length &gt; 0
                ? this.props.restrictedDates.map((d: Date) =&gt; d.toLocaleDateString()).join(', ')
                : 'Not set'}
            </span>
          </div>
        )}
        
        {this.props.showNavigateButtons &amp;&amp; (
          <div>
            
            
          </div>
        )}
      
    );
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / DatePicker / examples / DatePicker.Input.Example.tsx View on Github external
constructor(props: {}) {
    super(props);

    this.state = {
      firstDayOfWeek: DayOfWeek.Sunday,
      value: null
    };
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / Calendar / examples / Calendar.Button.Example.tsx View on Github external
isBeakVisible={false}
            className="ms-DatePicker-callout"
            gapSpace={0}
            doNotLayer={false}
            target={this._calendarButtonElement}
            directionalHint={DirectionalHint.bottomLeftEdge}
            onDismiss={this._onDismiss}
            setInitialFocus={true}
          &gt;
            
              
            
          
        )}
      
    );
  }