@jim75924
Your way of thinking is correct, but this one also could be useful for you…
You are using…
let $item=$w.at(event.context);
But i have to say, there are better ways…
Also i see you are working with …
exportfunctionexpandBtn_click(event){
}
Hmmm, yeah, probably in some cases this method is not bad, but in general, perhaps you should consider to work INSIDE → onReady(). I hope you understand what i mean.
It has its ADVANTAGES, believe me!