UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

34 lines (33 loc) 1.48 kB
import { BaseComponent } from 'office-ui-fabric-react/lib/Utilities'; import { IPersonaProps } from 'office-ui-fabric-react/lib/Persona'; import './PeoplePicker.Types.Example.scss'; export interface IPeoplePickerExampleState { currentPicker?: number | string; delayResults?: boolean; peopleList: IPersonaProps[]; mostRecentlyUsed: IPersonaProps[]; } export declare class PeoplePickerTypesExample extends BaseComponent<any, IPeoplePickerExampleState> { constructor(); render(): JSX.Element; _renderListPicker(): JSX.Element; _renderNormalPicker(): JSX.Element; _renderCompactPicker(): JSX.Element; _renderPreselectedItemsPicker(): JSX.Element; _renderLimitedSearch(): JSX.Element; private _renderFooterText(); private _renderFooterFullText(); private _onRemoveSuggestion(item); private _onFilterChanged(filterText, currentPersonas, limitResults?); private _returnMostRecentlyUsed(currentPersonas); private _returnMostRecentlyUsedWithLimit(currentPersonas); private _onFilterChangedWithLimit(filterText, currentPersonas); private _filterPromise(personasToReturn); private _listContainsPersona(persona, personas); private _filterPersonasByText(filterText); private _doesTextStartWith(text, filterText); private _convertResultsToPromise(results); private _removeDuplicates(personas, possibleDupes); private _toggleDelayResultsChange(toggleState); private _dropDownSelected(option); }