michitaro / vue-menu

Menu/Contextmenu Component for vue2

Home Page:https://michitaro.github.io/vue-menu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue-menu dynamic label

crmatthews opened this issue · comments

Is it currently available as a work-around or in the planning stage to allow a variable to provide the label for hsc-menu-bar-item and hsc-menu-item?

Example:

where YearMenuLabel could be a data return element or a computed property.

Both of the following return errors:
label="Year {{ BudgetYear }}"
label="Year " + BudgetYear

And,
label=YearMenuLabel
simply returns YearMenuLabel as the actual label, even without the quotes.

Please disregard.

I neglected to try this with :label instead of label.

Data return elements AND computed properties work.