Open and close a menu with the same button.

@ LMeyer

Take a look above to the post of " AV digital " (he has the right solution for this issue)

export function iconButton1_click(event) {
   if($w("#horizontalMenu1").hidden){
     $w("#horizontalMenu1").show()
}else{
  $w("#horizontalMenu1").hide()
}
}