ngOfficeUIFabric / ng-officeuifabric

Office UI Fabric (https://github.com/OfficeDev/office-ui-fabric) implementation for Angular
http://ngOfficeUiFabric.com
MIT License
321 stars 68 forks source link

People picker single mode #473

Closed Rus7am closed 6 years ago

Rus7am commented 7 years ago

I'd like to be able to select only one person in people picker. I think the simplest implementation would be to change the current selected person when you select another one.

Probably this mode should be enabled by special attribute (single?).

Expected Behavior

Allow only one person can be selected. Change current person when another one is selected.

Actual Behavior

Multiple people can be chosen. When a person is selected it is added to the selected list.

andrewconnell commented 7 years ago

While there's no match for this in the ReactJS version (https://dev.office.com/fabric#/components/peoplepicker), still a nice feature to have but on the backlog.

juliemturner commented 7 years ago

I just did a blog post on using the People Picker in SharePoint. I found a hacky workaround for this issue using a $watchCollection... that said, I agree it would be a nice feature.

andrewconnell commented 6 years ago

Implemented in v0.16.0