Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search result webpart: persona card component rendering issue #180

Closed
pravin080317 opened this issue Apr 8, 2020 · 3 comments
Closed

search result webpart: persona card component rendering issue #180

pravin080317 opened this issue Apr 8, 2020 · 3 comments

Comments

@pravin080317
Copy link

while rendering the personacardcomponent from the result types in search result webpart, the properties of optionaltext,secondarytext and tertiarytext is showing as undefined because of the casesensitive of second part of the letters "Text" "text". because of this persona rendering component is displaying only the image and text.
kinldy check on the below screenshots and let me know if i am wrong.

image

image

ref of calling persona component via result types
<div className={ styles.personaCard }> <a href='{{Path}}' target="_blank"> <pnp-persona-card text='{{Title}}' image-url="/_layouts/15/userphoto.aspx?size=M&accountname={{last (split AccountName '|')}}" **secondaryText**='{{last (split AccountName '|')}}' size={PersonaSize.size32} /> </a> </div>

@pravin080317
Copy link
Author

please refer the url for the more background..

#169

@wobba
Copy link
Collaborator

wobba commented Apr 8, 2020

@FranckyC should attributes in latest version be data-text, data-secondary-text etc? And update template.md to reflect this?

wobba added a commit that referenced this issue Jul 20, 2020
@wobba
Copy link
Collaborator

wobba commented Jul 20, 2020

Updated documentation to reflect to use <pnp-persona-card with pnp prefix. Also prefixed attributes with data but not really needed.

@wobba wobba closed this as completed Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants