Beispiel #1
0
        /// <summary>
        /// OnInitialized 方法
        /// </summary>
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            Items = await MenusDataGerator.GetTopItemsAsync(Localizer);

            IconItems = await MenusDataGerator.GetTopIconItemsAsync(Localizer);

            SideMenuItems = await MenusDataGerator.GetSideMenuItemsAsync(Localizer);

            IconSideMenuItems = await MenusDataGerator.GetIconSideMenuItemsAsync(Localizer);

            WidgetIconSideMenuItems = await MenusDataGerator.GetWidgetIconSideMenuItemsAsync(Localizer);

            CollapsedIconSideMenuItems = await MenusDataGerator.GetCollapsedIconSideMenuItemsAsync(Localizer);

            DisabledMenuItems = await MenusDataGerator.GetDisabledMenuItemsAsync(Localizer);

            DynamicSideMenuItems = await MenusDataGerator.GetSideMenuItemsAsync(Localizer);
        }
Beispiel #2
0
 private async Task ResetMenu()
 {
     DynamicSideMenuItems = await MenusDataGerator.GetSideMenuItemsAsync(Localizer);
 }
Beispiel #3
0
 private async Task UpdateMenu()
 {
     DynamicSideMenuItems = await MenusDataGerator.GetIconSideMenuItemsAsync(Localizer);
 }
        /// <summary>
        /// OnInitializedAsync 方法
        /// </summary>
        /// <returns></returns>
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            IconSideMenuItems = await MenusDataGerator.GetIconSideMenuItemsAsync(Localizer);
        }