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