Localize TabPanel component
This commit is contained in:
parent
af41e8bcfb
commit
ec270fbff0
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user