-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic labels for Menu components #449
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
vue2-portable
Milestone
Comments
Thanks, will keep this to wait for more user requests to proceed. |
Hi @Rakasch, Finally I solved the issue using this code: const userItems = ref([
{
label: "",
disabled: true
},
{
label: "Close session",
icon: "fas fa-sign-out-alt",
command: () => keycloak.logoutFn()
}
]);
onMounted(() => {
...
userItems.value[0].label = me.value.username;
...
}); I'm using Vue3, maybe you can adapt this code to Vue2. |
Thanks for sharing the solution. |
well, it's the same "solution" I used, isn't it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
vue2-portable
Would be nice, if the 'label' and 'icon' would also support a function or component variable - instead of a string.

My current solution for a dynamic text is to change the text before opening the menu.
The text was updated successfully, but these errors were encountered: