protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await JsInterop.InvokeVoidAsync("window.AntDesign.DocSearch.init", CurrentLanguage); } }
private async void OnLanguageChanged(object sender, CultureInfo culture) { _menuItems = await DemoService.GetMenuAsync(); await JsInterop.InvokeVoidAsync("window.AntDesign.DocSearch.init", culture.Name); await InvokeAsync(StateHasChanged); }
private async void OnLanguageChanged(object sender, CultureInfo culture) { await GetCurrentMenuItems(); await JsInterop.InvokeVoidAsync("window.AntDesign.DocSearch.localeChange", culture.Name); await InvokeAsync(StateHasChanged); }