Open shree998 opened 7 months ago
I found a way to do this, the onRenderIcon function works, but it only works if iconProps is provided with a fluent UI-registered icon name.
const _items: ICommandBarItemProps[] = [ { key: 'assigned', text: 'Assigned', //cacheKey: 'myCacheKey', iconProps: { iconName: 'Assign' }, onRenderIcon: () => (<img style={{ height: "20px", width: "20px" }} src={AssignmentIcons.Assigned} />), className: filterType == 'assigned' ? 'selectedView' : '', onClick: () => handleFilterChange('assigned') },
Discussed in https://github.com/microsoft/fluentui/discussions/30899