0
cicciottino created
is it possible to pass a normal string istead of a LocalizableString into the "DisplayName" parameter of the (MenuItemDefinition)NavigationProvider? if not, is there a sort of workaround?
public override void SetNavigation(INavigationProviderContext context)
{
context.Manager.MainMenu
.AddItem(
new MenuItemDefinition(
"Home",
new LocalizableString("HomePage", AbpZeroSampleConsts.LocalizationSourceName),
url: "#/",
icon: "fa fa-home"
)
).AddItem(
new MenuItemDefinition(
"About",
new LocalizableString("PoisList", AbpZeroSampleConsts.LocalizationSourceName), //using a normal string instead of LocalizationString
url: "#/About",
icon: "fa fa-info"
);
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Use FixedLocalizableString with the string you want to display inside the FixedLocalizableString.
It wont be localized and the display will be the exact same string as you wrote in the class.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
thanks a lot, i didn't know the existance of this class!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)