How to use the @uifabric/utilities.getId function in @uifabric/utilities

To help you get started, we’ve selected a few @uifabric/utilities 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 / Calendar / CalendarDay / CalendarDay.base.tsx View on Github external
dateTimeFormatter,
      styles,
      theme,
      className,
      onHeaderSelect,
      showSixWeeksByDefault,
      minDate,
      maxDate,
      restrictedDates,
      onNavigateDate,
      showWeekNumbers,
      dateRangeType,
      animationDirection
    } = this.props;
    const dayPickerId = getId();
    const monthAndYearId = getId();

    const classNames = getClassNames(styles, {
      theme: theme!,
      className: className,
      headerIsClickable: !!onHeaderSelect,
      showWeekNumbers: showWeekNumbers,
      animateBackwards: this.state.animateBackwards,
      animationDirection: animationDirection
    });

    return (
      <div id="{dayPickerId}">
        <div>
          </div></div>
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / Calendar / CalendarDay / CalendarDay.base.tsx View on Github external
navigatedDate,
      dateTimeFormatter,
      styles,
      theme,
      className,
      onHeaderSelect,
      showSixWeeksByDefault,
      minDate,
      maxDate,
      restrictedDates,
      onNavigateDate,
      showWeekNumbers,
      dateRangeType,
      animationDirection
    } = this.props;
    const dayPickerId = getId();
    const monthAndYearId = getId();

    const classNames = getClassNames(styles, {
      theme: theme!,
      className: className,
      headerIsClickable: !!onHeaderSelect,
      showWeekNumbers: showWeekNumbers,
      animateBackwards: this.state.animateBackwards,
      animationDirection: animationDirection
    });

    return (
      <div id="{dayPickerId}">
        <div>
          </div></div>
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / DatePicker / DatePicker.base.tsx View on Github external
constructor(props: IDatePickerProps) {
    super(props);
    this.state = this._getDefaultState();

    this._id = props.id || getId('DatePicker');

    this._preventFocusOpeningPicker = false;
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / DatePicker / DatePicker.base.tsx View on Github external
underlined,
      allFocusable,
      calendarAs: CalendarType = Calendar,
      tabIndex
    } = this.props;
    const { isDatePickerShown, formattedDate, selectedDate } = this.state;

    const classNames = getClassNames(styles, {
      theme: theme!,
      className,
      disabled,
      label: !!label,
      isDatePickerShown
    });

    const calloutId = getId('DatePicker-Callout');
    const nativeProps = getNativeProps&gt;(this.props, divProperties, ['value']);
    const iconProps = textFieldProps &amp;&amp; textFieldProps.iconProps;

    return (
      <div>
        <div aria-owns="{isDatePickerShown" aria-haspopup="true">
          </div></div>
github microsoft / fluent-ui-react / src / components / FocusZone / FocusZone.tsx View on Github external
constructor(props: IFocusZoneProps) {
    super(props)

    this._warnDeprecations({
      rootProps: undefined,
      allowTabKey: 'handleTabKey',
    })

    this._id = getId('FocusZone')

    this._focusAlignment = {
      left: 0,
      top: 0,
    }

    this._processingTabKey = false
  }
github OfficeDev / office-ui-fabric-react / packages / date-time / src / components / CalendarDayGrid / CalendarDayGrid.base.tsx View on Github external
public constructor(props: ICalendarDayGridProps) {
    super(props);

    this.state = {
      activeDescendantId: getId(),
      weeks: this._getWeeks(props)
    };

    this._onClose = this._onClose.bind(this);
  }