-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add IIconProps property to IDocumentCardPreviewImage interface #5315
Comments
@yiminwu @mikewheaton - when you have the opportunity (like during css to js conversion) can you look at adding this feature? |
@pschaeflein I believe this has been addressed as of this PR: #7584. It was published in Here's the line in Can you take a look and see if this meets your needs? Thanks! |
@Jahnp that PR replaces the preview image with an icon, not the filetype icon overlaying the image. |
@pschaeflein Thank you for this workaround. Just what I needed :) |
frustrating - I tried the "workaround" above and not getting it to work. The "globalSettings.icons" array doesnt have a value for the file types that I tried (so far I tried PDF and HTM) as returned from the getFileTypeIconProps object. |
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Describe the feature that you would like added
Add IIconProps property to IDocumentCardPreviewImage interface
What component or utility would this be added to
DocumentCard
Have you discussed this feature with our team, and if so, who
No
Additional context/screenshots
Rendering a document icon on a DocumentCard is a common scenario. Getting the iconSrc for the icon is very difficult. It is possible via the GlobalSettings object The following is a working example:
It would feel more consistent to use the following pseudo-code:
The text was updated successfully, but these errors were encountered: