Add Visible property to control the visibility
This commit is contained in:
parent
a37eb8a44a
commit
5ee38e4ae7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user