That would be great! For now I’ve gotten this code below to work, but it’s only relevant to clicking and doesn’t necessarily work 100% as intended. If you have time, I’d love to see the syntax you’re thinking because I’ve tried 20-30 different things that all failed haha… cheers!
let selectedRecord;
$w.onReady(function () {
handleSelectItem();
function handleSelectItem() {
$w("#box1").onClick((event, $w) => {
if (selectedRecord) {
selectedRecord.style.backgroundColor = "#ffffff"; //reset previously select record
}
let $item = $w.at(event.context); //get scoped selector
selectedRecord = $item("#box1");
selectedRecord.style.backgroundColor = "#ffcc37"; //highlight newly selected one
});}})