-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cagataycivici
changed the title
[enhancement] Menu items with dynamic labeltext
Menu items with dynamic labeltext
Aug 27, 2020
cagataycivici
added
the
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
label
Aug 27, 2020
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. |
cagataycivici
removed
the
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
label
May 10, 2021
Thanks for sharing the solution. |
well, it's the same "solution" I used, isn't it? |
cagataycivici
added
the
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
label
Nov 17, 2021
cagataycivici
changed the title
Menu items with dynamic labeltext
Dynamic labels for Menu components
Nov 17, 2021
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: