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