fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

SPFx(On-Prem) - Property for single choice of Office-IU-Fabric - PeoplePicker

Open geogikk92 opened this issue 9 years ago • 2 comments

I need to use componen for SPFX webtpart v1.0.2 for On-Premise server and I want to choice only one person from Office-UI-Fabric - PeoplePicker component

This is my HTML(.tsx)

    public render(): React.ReactElement<ISPPeoplePickerProps> {

    return (
      <div className={ css('ms-TextField', {'is-required': this.props.required }) }>
        <Label>{ this.props.label }</Label>
        <NormalPeoplePicker
            onChange={ this._onChangePeoplePicker }
            onResolveSuggestions={ this._onFilterChangedPeoplePicker }
            getTextFromItem={ (persona: IPersonaProps) => persona.primaryText }                
            pickerSuggestionsProps={ suggestionProps }
            className={ 'ms-PeoplePicker' }
            key={ 'normal' } />
      </div>
    );
  }

Where i install version "npm install [email protected] --save", because she have property ItemLimit {1} have following error:

[ts] JSX element type 'NormalPeoplePicker' is not a constructor function for JSX elements. Property 'setState' is missing in type 'NormalPeoplePicker'. [ts] JSX element class does not support attributes because it does not have a 'props' property import NormalPeoplePicker How to do this?

geogikk92 avatar Sep 26 '17 13:09 geogikk92

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 09:04 stale[bot]

This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 18 '18 21:05 stale[bot]