Closed Ofer-Gal closed 2 months ago
Hi, where did you put those lines of code, in wich file?
Try to put the code provided by you on the main .ts webpart file not .tsx I have placed mine just after the last import {...} from "...."; line and out of the default webpart class.
Give it a try.
Thanks for the answer. I moved it to the ...WebPart.ts after the last import {...} from "...."; line I did not understand "and out of the default webpart class." did you mean the main TSX file? then I did. (not using classes) Anyway it did not make a difference. Still shows the defaults. Also, I question the usability of having just one central setting. For the "inputPlaceholderText" property I can use the controls "placeholder" property so each PeoplePicker will have its own message. But for the "maxSelectionsPlaceHolder" There is no control property to specify but a developer may want a specific message for each PeoplePicker. Say "No more users" Vs "no more Guests"
Maybe I missed something?
I use 4.2.1 version now and it works 😂
I use 4.2.1 version now and it works 😂
@Ofer-Gal does this mean using the v4.2.1 fixed this?
Yes even if you have a different LocalizationHelper.strings for each component (*.tsx)
Now with version 4.3.2 it works in one project but not other. Why Can't it be just a property of "PeoplePicker"
In new project maxSelectionsPlaceHolder: '',
works fine but the empty space should go away.
How can I remove the input altogether?
In new project
maxSelectionsPlaceHolder: '',
works fine but the empty space should go away. How can I remove the input altogether?
You can't remove. We can make that a separate issue so that if you've that property, we can reduce the length or wrap the input not to show.
How do I do that?
How do I do that?
Done here https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/3255 add any more context by editing it
I added
Still shows the default values.
String name Default value inputPlaceholderText Search for a name maxSelectionsPlaceHolder Max contacts added
I use react in a SPFx webpart and MGT 4.2.1
Please help