Add Visible property to control the visibility
This commit is contained in:
		| @ -5,7 +5,7 @@ | ||||
| @inject ILocalizationService LocalizationService | ||||
| @inject NavigationManager NavigationManager | ||||
|  | ||||
| @if (_supportedCultures != null) | ||||
| @if (_supportedCultures != null && Visible) | ||||
| { | ||||
|     <div class="btn-group" role="group"> | ||||
|         <button id="btnCultures" type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||||
| @ -24,6 +24,9 @@ | ||||
|     private string _selectedCulture; | ||||
|     private IEnumerable<Culture> _supportedCultures; | ||||
|  | ||||
|     [Parameter] | ||||
|     public bool Visible { get; set; } = true; | ||||
|  | ||||
|     protected override async Task OnParametersSetAsync() | ||||
|     { | ||||
|         var interop = new Interop(JSRuntime); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 hishamco
					hishamco