Fluentui: Picker: "removeButtonAriaLabel" don't have access to corresponding tag

Created on 11 Jun 2019  路  5Comments  路  Source: microsoft/fluentui

Is there any way get corresponding tag for closing button. Currently we can add only generic value for all.

Needs

Most helpful comment

@pandey11 you can actually do this already! Check out this codepen. You can pass in a custom renderer that takes in all the props and returns a custom label for each item!

All 5 comments

Hey @pandey11 thanks for opening an issue! We do ask when opening an issue that you please provide a CodePen sample of the issue you're facing so we can better understand or if you have a question that you direct it to StackOverflow. Thanks!

@Naninani Hope this help in clarifying the issue.

<TagPicker removeButtonAriaLabel= "This property is expecting a string. There is no way to dynamically assign corresponding tag text" />

Expect Behavior: There should be way to assign call back function which has access to corresponding tag
Capture

@pandey11 you can actually do this already! Check out this codepen. You can pass in a custom renderer that takes in all the props and returns a custom label for each item!

@pandey11 Line 46 in the codepen is the bit that does the work of adding a dynamic label.

@joschect cool thanks

Was this page helpful?
0 / 5 - 0 ratings