I am building a component library, which have a main icon and when clicking on the main icon i want to show/hide the other icons. When showing the other icons i want to set the width of the component to be App.Width*0.1 else to be App.Width*0.5.. now i set this formula on the main icon OnSelect:-

but i can not access the variable "varWidth" inside the component Width formula, as follow:-

any advice?