I want to understand how this menu can be expanded by clicking on the text

I want to understand how this menu can be expanded by clicking on the text of the menu item without clicking the icon on the far right. Can you tell me how to achieve this, trouble?

Hi, did u find a solution?