UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

32 lines (31 loc) 1.17 kB
/// <reference types="react" /> import * as React from 'react'; import { IPersonaProps } from 'office-ui-fabric-react/lib/Persona'; import './FloatingPeoplePicker.Basic.Example.scss'; export interface IPeoplePickerExampleState { currentPicker?: number | string; peopleList: IPersonaProps[]; mostRecentlyUsed: IPersonaProps[]; currentSelectedItems?: IPersonaProps[]; searchValue: string; } export declare class FloatingPeoplePickerTypesExample extends React.Component<{}, IPeoplePickerExampleState> { private _picker; private _inputElement; constructor(props: {}); render(): JSX.Element; private _onFocus; private _setInputElementRef; private _renderFloatingPicker(); private _setComponentRef; private _onSearchChange; private _onPickerChange; private _onRemoveSuggestion; private _onFilterChanged; private _getTextFromItem(persona); private _listContainsPersona(persona, personas); private _filterPersonasByText(filterText); private _doesTextStartWith(text, filterText); private _removeDuplicates(personas, possibleDupes); private _validateInput; }