Code Monkey home page Code Monkey logo

Comments (11)

russgove avatar russgove commented on August 28, 2024

Needs to be able to select a group from sitegroups too!

from sp-dev-fx-controls-react.

AsishP avatar AsishP commented on August 28, 2024

@VesaJuvonen, has anyone started looking into this control. I had already built a similar control for people picker (Site Users only right now) using Office Fabric React in one of my recent projects. Had to go through a extended dev process to extend and program the control. Including a custom validation was really tough too. Really feel it would a help to lot of dev with this control.

If possible, I would be happy to contribute that control here. Have attached screenshot from my project below. Don't know how does contribution works here. Could you please let me know.

peoplepickercontrol

from sp-dev-fx-controls-react.

estruyf avatar estruyf commented on August 28, 2024

@AsishP feel free to contribute to the project. I'm not aware of anyone working on this functionality. This control would be a great addition. You can find more information how to contribute to the project here: https://github.com/SharePoint/sp-dev-fx-controls-react/blob/master/docs/guides/index.md

from sp-dev-fx-controls-react.

AsishP avatar AsishP commented on August 28, 2024

Thanks @estruyf. I will go through the docs and let you know if there are any queries.

from sp-dev-fx-controls-react.

AsishP avatar AsishP commented on August 28, 2024

Hi @estruyf , I am ready with the first version of the People picker control. Before I put up a PR, I have got a query regarding tests. I have don't any unit tests with React or SPFx yet. Is it needed for the control? If yes, could you please redirect me to the steps for the same or the framework (mocha or chai) or npm package I could use for the same.

from sp-dev-fx-controls-react.

AsishP avatar AsishP commented on August 28, 2024

Hi all, I have submitted the PR for Peoplepicker control. Please test and let me know if there are any questions or issues. Thanks.

from sp-dev-fx-controls-react.

rchivert avatar rchivert commented on August 28, 2024

Is there a working example for the peoplepicker control? I tried to use it and getting errors...

(I'm using it in the "Use custom dialog boxes with SharePoint Framework Extensions" example: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/guidance/using-custom-dialogs-with-spfx

from sp-dev-fx-controls-react.

amolkhedekar01 avatar amolkhedekar01 commented on August 28, 2024

I am using people picker and i need to clear people picker on button click, any solution for clear people picker on button click.(i am using SPFX react).

Please let me know if anybody have solution.

from sp-dev-fx-controls-react.

sympmarc avatar sympmarc commented on August 28, 2024

@amolkhedekar01 Better to create a new issue. This one has been closed for a long time.

That said, in 1.12.0 (there was a bug previously - fixed in #234), you can pass an empty array to defaultSelectedUsers:

defaultSelectedUsers={(this.state.filters.ShipmentRequestor && this.state.filters.ShipmentRequestor.length) ? [this.state.filters.ShipmentRequestor.email] : []}

from sp-dev-fx-controls-react.

amolkhedekar01 avatar amolkhedekar01 commented on August 28, 2024

Thanks its worked

from sp-dev-fx-controls-react.

prabhu8323 avatar prabhu8323 commented on August 28, 2024

@amolkhedekar01 Could you please share the working line of code. As I am also facing same issue. Thansk!

from sp-dev-fx-controls-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.