Exemple #1
0
        private void ConfigureDashboards()
        {
            Configure <DashboardOptions>(options =>
            {
                options.Dashboards.AddRange(DashboardDefinitionProvider.GetDefinitions());
            });

            Configure <BundlingOptions>(options =>
            {
                options.ScriptBundles.Add(DashboardNames.MyDashboard, configuration =>
                {
                    configuration.AddContributors(typeof(MyDashboardScriptBundleContributor));
                });
                options.ScriptBundles.Add(UserCountWidgetViewComponent.WidgetName, configuration =>
                {
                    configuration.AddContributors(typeof(UserCountWidgetScriptBundleContributor));
                });
                options.StyleBundles.Add(DashboardNames.MyDashboard, configuration =>
                {
                    configuration.AddContributors(typeof(MyDashboardStyleBundleContributor));
                });
                options.StyleBundles.Add(UserCountWidgetViewComponent.WidgetName, configuration =>
                {
                    configuration.AddContributors(typeof(UserCountWidgetStyleBundleContributor));
                });
            });
        }
Exemple #2
0
        private void ConfigureDashboards()
        {
            Configure <DashboardOptions>(options =>
            {
                options.Dashboards.AddRange(DashboardDefinitionProvider.GetDefinitions());
            });

            Configure <BundlingOptions>(options =>
            {
                options.ScriptBundles.Add("MyDashboard", configuration =>
                {
                    configuration.AddContributors(typeof(MyDashboardScriptBundleContributor));
                });
            });
        }