Exemple #1
0
        public RenderFragment RenderLink()
        {
            void Fragment(RenderTreeBuilder builder)
            {
                int seq = -1;

                builder.OpenComponent <TriggerWrapper>(++seq);
                builder.AddAttribute(++seq, "Trigger", _update);

                if (Manifests != null)
                {
                    builder.AddAttribute(++seq, "ChildContent", (RenderFragment)(builder2 => builder2.AddContent(
                                                                                     ++seq,
                                                                                     ResourceManifest.RenderStylesheets(
                                                                                         Manifests,
                                                                                         new Dictionary <string, string>
                    {
                        { "ThemeVariant", Variant ! },
                    }
                                                                                         ))));
                }