Vue-menu dynamic label
crmatthews opened this issue · comments
Craig Matthews commented
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.
Craig Matthews commented
Please disregard.
I neglected to try this with :label instead of label.
Data return elements AND computed properties work.