Access row information in custom renderer within an array

Is there a way to access the row index, or data filled in a row if I add a custom renderer within an array?

The UI schema will look something like this:

{
“type”: “VerticalLayout”,
“elements”: [
{
“type”: “Control”,
“scope”: “#/properties/comments”
},{
“type”: “CustomButton”,
}
]
}

The use case here would be, I want a button when clicked will open a modal or open the details in a new page.

Hi @collegewap,

The path will contain the index number of the array. It’s not handed over as a separate prop.