Localize TabPanel component

This commit is contained in:
hishamco 2020-10-24 09:44:56 +03:00
parent af41e8bcfb
commit ec270fbff0

View File

@ -1,5 +1,5 @@
@namespace Oqtane.Modules.Controls @namespace Oqtane.Modules.Controls
@inherits ModuleControlBase @inherits LocalizableComponent
@if (Name == Parent.ActiveTab) @if (Name == Parent.ActiveTab)
{ {
@ -32,4 +32,14 @@ else
base.OnInitialized(); base.OnInitialized();
Parent.AddTabPanel((TabPanel)this); Parent.AddTabPanel((TabPanel)this);
} }
protected override void OnParametersSet()
{
base.OnParametersSet();
if (IsLocalizable)
{
Heading = Localize(nameof(Heading));
}
}
} }