How to use the @uifabric/example-data.people.length function in @uifabric/example-data

To help you get started, we’ve selected a few @uifabric/example-data 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 / SelectedItemsList / SelectedPeopleList / examples / SelectedPeopleList.WithEditInContextMenu.Example.tsx View on Github external
private _onAddItemButtonClicked = (): void => {
    const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
    this._selectionList.addItems([randomPerson]);
  };
github OfficeDev / office-ui-fabric-react / packages / experiments / src / components / SelectedItemsList / SelectedPeopleList / examples / SelectedPeopleList.WithGroupExpand.Example.tsx View on Github external
private _onAddItemButtonClicked = (): void => {
    const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
    this._selectionList.addItems([randomPerson]);
  };
github OfficeDev / office-ui-fabric-react / packages / experiments / src / components / SelectedItemsList / SelectedPeopleList / examples / SelectedPeopleList.WithEdit.Example.tsx View on Github external
private _onAddItemButtonClicked = (): void => {
    const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
    this._selectionList.addItems([randomPerson]);
  };
github OfficeDev / office-ui-fabric-react / packages / experiments / src / components / SelectedItemsList / SelectedPeopleList / examples / SelectedPeopleList.WithContextMenu.Example.tsx View on Github external
private _onAddItemButtonClicked = (): void => {
    const randomPerson = people[Math.floor(Math.random() * (people.length - 1))];
    this._selectionList.addItems([randomPerson]);
  };