Selectmenu: Implement classes option

Fixes gh-7731