Skip to content

TreeView Item - pass through imageProps of iconProps to TreeItem #2074

@jimmywim

Description

@jimmywim

Category

[x] Enhancement

Version

Please specify what version of the library you are using: 3.23.0

Expected / Desired Behavior / Question

When rendering a TreeItem, and you pass in iconProps - it would be very useful to us to also use the imageProps prop of IIconProps to the underlying <Icon /> component that is rendered.

Observed Behavior

Currently, the <Icon /> component created when iconProps is specified does not pass through the imageProps.

<Icon className={styles.icon} iconName={item.iconProps.iconName} style={item.iconProps.style} theme={this.props.theme} />

I'm currently prepping a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions