I'm developping a widget based on the table widget in Experience Builder.
Basically, I added 2 buttons on top of the table, and I want to fire some actions on my selected rows (selected though the table, not by clicking on the map), by a click on those buttons.
My main action is to automatically change the value of one attribute of the selected row(s).
I can't figure out how to access these attributes. So far, I can get an Array with the selected items, but it doesn't contain the attributes values I need. Can someone help ? Thanks.
changeStatus = () => {
const selectedArray = (this.table as any).grid.selectedItems.items;
console.log(selectedArray)
}
<Button onClick={this.changeStatus} size="lg" style={{
position: 'absolute',
backgroundColor: 'red',
borderRadius: 6,
right: 180,
top: 48,
}}>Refuse</Button>