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

List of Icons / Applications supported for ListView #250

Closed
DaMichiiii opened this issue Mar 8, 2019 · 6 comments
Closed

List of Icons / Applications supported for ListView #250

DaMichiiii opened this issue Mar 8, 2019 · 6 comments

Comments

@DaMichiiii
Copy link

Category

[ ] Enhancement

[ ] Bug

[ x ] Question

Version

^1.12.0

Question

Dear pnp Team,

I have a question regarding the icon paths i can use to display icons in your Listview.
Only ones i found out are extensions, like docx, xlxs, etc.

Is there some sort of list, which ones i can use? I checked the icon Names i found here:
https://developer.microsoft.com/en-us/fabric#/styles/icons

and other sources for offical MS UI Fabric icons, but they wouldn't display correctly.

I wanted to use Folder for example, but it only showed the default icon.

Can you help me out on this one?
Thanks in advance.

@spoofan
Copy link

spoofan commented Jan 11, 2022

Any update on this one? I am facing the same issue...The folder gets default icon.

@Luca3082
Copy link

Luca3082 commented Apr 4, 2023

no response in this thread?
is there any way to use a specific file url to render icon in the listview control, please?

@michaelmaillot
Copy link
Collaborator

Hi everyone,

If I'm not mistaken, for now the icon rendering for ListView (if we're talking about iconFieldName prop) relies on the FileTypeIcon control, which has a predefined list of applications (which you can find here).

Maybe an improvment could be to allow overriding the render of the icon column or adding new extensions / file type (such as folder) to the control.

@joelfmrodrigues
Copy link
Collaborator

@DaMichiiii sorry for the extremely late reply...
Michael is right and the rendering of the icon is handled internally using the FileTypeIcon control, which can be extended to accommodate additional requirements. As an alternative, you should be able to use a different column and control the rendering on your side.

Did this answer the question?

@ghost
Copy link

ghost commented Aug 28, 2023

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

@ghost ghost closed this as completed Sep 4, 2023
@ghost
Copy link

ghost commented Sep 4, 2023

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants