This code no longer works. Here is an updated version:
// Velo API Reference: https://www.wix.com/velo/reference/api-overview/introduction
$w.onReady(function () {
});
$w("#table1").onCellSelect((event) => { //When a cell is selected
let cellData = event.cellData; //Get Cell data
$w('#box2').show(); //Show the box
$w('#box2').expand(); //Expand the box
$w('#richTextBox1').value = cellData; //Input the cell data in the box
});
$w("#closeBox").onClick((event) => { //When close button is pressed
$w('#box2').hide(); //Hide the box
$w('#box2').collapse(); //Collapse the box
});