I am creating a row with few cells. I am giving option to user to enter more rows if they want. When value get changed, I want to store those values in state object. I am using Office UI Fabric TextField control. This is having onChanged event, but this is capturing only the value of the textbox. But I want to capture the event or simply, I want to get the data-id attribute of it's parent element which is a row. I am implementing this in SharePoint Spfx with React framework.
I am creating a row with few cells. I am giving option to user to enter more rows if they want. When value get changed, I want to store those values in
state
object. I am using Office UI Fabric TextField control. This is having onChanged event, but this is capturing only the value of the textbox. But I want to capture the event or simply, I want to get thedata-id
attribute of it's parent element which is a row. I am implementing this in SharePoint Spfx with React framework.