This may be a very basic question, but I have a widget column with two buttons and I would like to hide/show the buttons conditionally based on data in a different field in that row. Should I be looking at the "parent" property? Example (consentStatus if a different field on the row):
{
text: 'Buttons',
align: 'center',
width: 120,
type: 'widget',
flex: 2,
// An array of Button widgets
widgets: [{
type: 'button',
//icon: 'b-fa b-fa-minus',
text: "Surveys",
cls: 'b-blue b-raised mr-2',
hidden: (parent.consentStatus =="Consented"?false:true),
onAction: ({
source: btn