remove user-defined style from menu item


how can I remove previously added style from menu item? I added style with item.setStyleName(“mystyle”).
I don’t see corresponding item.removeStyleName(“mystyle”).

thanks in advance,

Assuming that it works like the setStyleName() for regular components, you should be able to call setStyleName(“”) to clear the user-defined styles.