Skip to content

Commit bb7cef0

Browse files
authored
Update ListView control iconFieldName to reflect a property that does show Icon
I was having issues showing the iconFieldName and eventually found my answer in this closed issue: #396 (comment) But it does not seem like the docs were ever updated so thought I'd spare the next person the same trouble :) iconFieldName="FileRef" works as of Christmas Day, 2022
1 parent 450b664 commit bb7cef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/documentation/docs/controls/ListView.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { ListView, IViewField, SelectionMode, GroupOrder, IGrouping } from "@pnp
2727
<ListView
2828
items={items}
2929
viewFields={viewFields}
30-
iconFieldName="ServerRelativeUrl"
30+
iconFieldName="FileRef"
3131
compact={true}
3232
selectionMode={SelectionMode.multiple}
3333
selection={this._getSelection}

0 commit comments

Comments
 (0)