Forum Discussion
Björn Nettingsmeier
Sep 21, 2018Brass Contributor
PersonaCard in SPFx Webparts
Hi all,
we and our users are quite happy with the display of persona information on modern SPO sites! As we also develop custom SPFx Webparts which display people information, we would like to know if there is any documented way to display the same persona callout dialog?? (perhaps Graph Adaptive Cards)
And another "unpopular" question. We also use our SPFx Webparts on classic websites. As all the modern stuff is not available there, I think there is no chance to display this on classic pages ??
Thanks
Bjoern
- Hi ,
Can you try my blog, I have created workaround solution.
https://anil-lakhagoudar.blogspot.com/2018/12/sharepoint-online-live-persona-card-in.html
- Anil-lakhagoudarCopper ContributorHi ,
Can you try my blog, I have created workaround solution.
https://anil-lakhagoudar.blogspot.com/2018/12/sharepoint-online-live-persona-card-in.htmlHi Anil,
thank you for your Workaround !
in your Persona Callout Hover is the Same as the People Web Part ?
does in your Solution the Persona card have the "Show Org" Properties - for showing the Organization Hierarchy of the Employee ?
if no - can you instruct us how to add this property ?
Thanks,
Nati
- Anil-lakhagoudarCopper Contributor
natipapi Yes it shows the organization tab when you click on show more from callout menu and the callout menu is same as People webpart.
Thanks,
Anil
- Björn NettingsmeierBrass ContributorThanks Anil, this one works for us!!
- Anil-lakhagoudarCopper ContributorThank you
- Frank HessenBrass Contributor
Hi Björn,
I would recommend you take a look at the Office UI Fabric. More specifically the FacePile example.
https://developer.microsoft.com/en-us/fabric-js/components/facepile/facepile
Regarding your other question you can use SPFX on classic. Refer to https://sharepoint.stackexchange.com/questions/220698/sharepoint-framework-with-classic-view/220701
- Björn NettingsmeierBrass Contributor
Hi Frank, thanks for your answer.
Actually we are allready using UI Fabric components to ensure a native look and feel of our webparts (on modern and classic pages)
But as long as I understand UI Fabric is just for layout, not for content. Means, of course I am able to render a persona card layout with this, but I have to keep care of all the contents (from graph, azure ad, outlook) by myself. Best way to get around this is to call some kind of standard SPO function which accepts a userId and renders the default persona card with all its content ?!
- Chris VeneboerCopper Contributor
Did you find a solution for this? I'm stuck on the same problem.