setCloseSubmenuOnItemClick

open fun setCloseSubmenuOnItemClick(shouldCloseSubmenuOnItemClick: Boolean)

Sets if the submenu should be hidden when any item in the submenu is clicked.

Parameters

shouldCloseSubmenuOnItemClick

If true, clicking on the submenu item will close the submenu, otherwise it remains open.