Do you have a list of buttons, each with their own appearance and click behavior, that you want to show for every item, but you might hide some of the buttons for some of the items?
yes , I have a structure look something like this
MenuItem:{
icon:string; // the text that will show on the button
toolTip: string || ()=>{some method to get the tooltip}; // too tip
visible:()=> {some method} //for binding
command:()=>{some method} //the action on click
}
so I have an array of MenuItems , that I want that array in the hoverButtons,
elements should be shown base in the visible method