0

The documentation for the fabric IContextualMenuItem say the data property can be 'Any custom data the developer wishes to associate with the menu item'.

How does one access that data in the item's onClick handler using react in an SPFX webpart?

1 Answer 1

0

i didn't realize there was a second parameter to the onclick. that second parameter is the contextual menu item which give you access to the data (and everything else on the item)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.