remove user-defined style from menu item

Hi,

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,
Gosia

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