# Opened Submenu You can set `default-expanded-names` to make menu work in an uncontrolled manner or use `expanded-names` and `@expanded-names-change` to make it work in a controlled manner. ```html ``` ```js import bookIcon from 'naive-ui/lib/icons/book-outline' import personIcon from 'naive-ui/lib/icons/person-outline' import wineIcon from 'naive-ui/lib/icons/wine-outline' export default { components: { bookIcon, personIcon, wineIcon }, data () { return { defaultExpandedNames: ['dance-dance-dance', 'food'], activeName: null } }, methods: { handleSelect (value) { this.$NMessage.info('Select: ' + JSON.stringify(value)) }, handleExpandedNamesChange (value) { this.$NMessage.info('ExpandedNamesChange: ' + JSON.stringify(value)) } } } ```